home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-19 | 66.4 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Oct 17 07:49:13 1994, modified Wed Oct 19 10:33:01 1994, creator 'HLX2', type 'ONLN', 65145 bytes "TB41 Translation Manager" , at 0xfef9 2633 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dexmagic
| Picasso 64 Image
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 54 42 34 31 20 54 | 72 61 6e 73 6c 61 74 69 |..TB41 T|ranslati|
|00000010| 6f 6e 20 4d 61 6e 61 67 | 65 72 00 00 00 00 00 00 |on Manag|er......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 fe 79 00 | 00 0a 49 aa c8 15 39 aa |......y.|..I...9.|
|00000060| ca de 9d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c0 fb 00 00 |........|........|
|00000080| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 4d 61 6e 61 |Translat|ion Mana|
|00000090| 67 65 72 20 31 2e 31 0d | 54 6f 6f 6c 62 6f 78 09 |ger 1.1.|Toolbox.|
|000000a0| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 44 79 6c |.Written| by:.Dyl|
|000000b0| 61 6e 20 41 73 68 65 09 | 4a 75 6e 65 20 31 39 39 |an Ashe.|June 199|
|000000c0| 34 0d 54 68 69 73 20 54 | 65 63 68 6e 69 63 61 6c |4.This T|echnical|
|000000d0| 20 4e 6f 74 65 20 64 69 | 73 63 75 73 73 65 73 20 | Note di|scusses |
|000000e0| 63 68 61 6e 67 65 73 20 | 74 6f 20 74 68 65 20 54 |changes |to the T|
|000000f0| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 4d 61 6e 61 67 |ranslati|on Manag|
|00000100| 65 72 20 77 68 69 63 68 | 20 61 72 65 20 61 76 61 |er which| are ava|
|00000110| 69 6c 61 62 6c 65 20 69 | 6e 20 4d 61 63 69 6e 74 |ilable i|n Macint|
|00000120| 6f 73 68 20 45 61 73 79 | 20 4f 70 65 6e 20 76 65 |osh Easy| Open ve|
|00000130| 72 73 69 6f 6e 20 31 2e | 31 20 61 6e 64 20 6c 61 |rsion 1.|1 and la|
|00000140| 74 65 72 2e 20 20 54 68 | 65 20 69 6e 66 6f 72 6d |ter. Th|e inform|
|00000150| 61 74 69 6f 6e 20 63 6f | 6e 74 61 69 6e 65 64 20 |ation co|ntained |
|00000160| 68 65 72 65 20 69 73 20 | 69 6e 20 61 64 64 69 74 |here is |in addit|
|00000170| 69 6f 6e 20 74 6f 20 77 | 68 61 74 20 69 73 20 64 |ion to w|hat is d|
|00000180| 69 73 63 75 73 73 65 64 | 20 69 6e 20 49 6e 73 69 |iscussed| in Insi|
|00000190| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 3a 20 4d 6f |de Macin|tosh: Mo|
|000001a0| 72 65 20 4d 61 63 69 6e | 74 6f 73 68 20 54 6f 6f |re Macin|tosh Too|
|000001b0| 6c 62 6f 78 2c 20 54 72 | 61 6e 73 6c 61 74 69 6f |lbox, Tr|anslatio|
|000001c0| 6e 20 4d 61 6e 61 67 65 | 72 20 63 68 61 70 74 65 |n Manage|r chapte|
|000001d0| 72 2c 20 61 73 20 77 65 | 6c 6c 20 61 73 20 69 6e |r, as we|ll as in|
|000001e0| 20 74 68 65 20 41 50 44 | 41 20 4d 61 63 69 6e 74 | the APD|A Macint|
|000001f0| 6f 73 68 20 45 61 73 79 | 20 4f 70 65 6e 20 44 65 |osh Easy| Open De|
|00000200| 76 65 6c 6f 70 65 72 73 | 20 4b 69 74 2e 0d 54 68 |velopers| Kit..Th|
|00000210| 65 20 64 6f 63 75 6d 65 | 6e 74 20 61 73 73 75 6d |e docume|nt assum|
|00000220| 65 73 20 74 68 61 74 20 | 79 6f 75 20 61 72 65 20 |es that |you are |
|00000230| 73 6f 6d 65 77 68 61 74 | 20 66 61 6d 69 6c 69 61 |somewhat| familia|
|00000240| 72 20 77 69 74 68 20 74 | 68 65 20 54 72 61 6e 73 |r with t|he Trans|
|00000250| 6c 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 20 41 |lation M|anager A|
|00000260| 50 49 2e 0d 54 6f 70 69 | 63 73 0d a5 20 47 65 73 |PI..Topi|cs.. Ges|
|00000270| 74 61 6c 74 20 61 6e 64 | 20 74 68 65 20 54 72 61 |talt and| the Tra|
|00000280| 6e 73 6c 61 74 69 6f 6e | 20 4d 61 6e 61 67 65 72 |nslation| Manager|
|00000290| 0d a5 20 4e 65 77 20 54 | 72 61 6e 73 6c 61 74 69 |.. New T|ranslati|
|000002a0| 6f 6e 20 4d 61 6e 61 67 | 65 72 20 41 50 49 27 73 |on Manag|er API's|
|000002b0| 0d a5 20 4e 65 77 20 54 | 72 61 6e 73 6c 61 74 69 |.. New T|ranslati|
|000002c0| 6f 6e 20 45 78 74 65 6e | 73 69 6f 6e 20 43 61 70 |on Exten|sion Cap|
|000002d0| 61 62 69 6c 69 74 69 65 | 73 0d a5 20 50 6f 77 65 |abilitie|s.. Powe|
|000002e0| 72 50 43 20 54 72 61 6e | 73 6c 61 74 69 6f 6e 20 |rPC Tran|slation |
|000002f0| 45 78 74 65 6e 73 69 6f | 6e 73 0d 47 65 73 74 61 |Extensio|ns.Gesta|
|00000300| 6c 74 20 61 6e 64 20 74 | 68 65 20 54 72 61 6e 73 |lt and t|he Trans|
|00000310| 6c 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 0d 53 |lation M|anager.S|
|00000320| 6f 6d 65 20 6f 66 20 74 | 68 65 20 6e 65 77 20 41 |ome of t|he new A|
|00000330| 50 49 27 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |PI's are| availab|
|00000340| 6c 65 20 6f 6e 6c 79 20 | 69 6e 20 54 72 61 6e 73 |le only |in Trans|
|00000350| 6c 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 20 31 |lation M|anager 1|
|00000360| 2e 31 20 61 6e 64 20 73 | 6f 6d 65 20 68 61 76 65 |.1 and s|ome have|
|00000370| 20 61 6c 77 61 79 73 20 | 62 65 65 6e 20 61 76 61 | always |been ava|
|00000380| 69 6c 61 62 6c 65 2e 20 | 20 55 73 65 20 47 65 73 |ilable. | Use Ges|
|00000390| 74 61 6c 74 28 29 20 61 | 73 20 61 70 70 72 6f 70 |talt() a|s approp|
|000003a0| 72 69 61 74 65 20 74 6f | 20 63 68 65 63 6b 20 66 |riate to| check f|
|000003b0| 6f 72 20 74 68 65 20 65 | 78 69 73 74 65 6e 63 65 |or the e|xistence|
|000003c0| 20 6f 66 20 73 6f 6d 65 | 20 6f 66 20 74 68 65 20 | of some| of the |
|000003d0| 6e 65 77 20 41 50 49 27 | 73 20 28 64 69 73 63 75 |new API'|s (discu|
|000003e0| 73 73 65 64 20 6c 61 74 | 65 72 20 69 6e 20 74 68 |ssed lat|er in th|
|000003f0| 69 73 20 64 6f 63 75 6d | 65 6e 74 29 2e 0d 20 20 |is docum|ent).. |
|00000400| 20 20 20 67 65 73 74 61 | 6c 74 54 72 61 6e 73 6c | gesta|ltTransl|
|00000410| 61 74 69 6f 6e 4d 67 72 | 48 69 6e 74 4f 72 64 65 |ationMgr|HintOrde|
|00000420| 72 20 3d 20 31 0d 54 68 | 65 20 70 72 65 76 69 6f |r = 1.Th|e previo|
|00000430| 75 73 20 62 69 74 20 77 | 69 6c 6c 20 62 65 20 73 |us bit w|ill be s|
|00000440| 65 74 20 69 66 20 74 68 | 65 20 54 72 61 6e 73 6c |et if th|e Transl|
|00000450| 61 74 69 6f 6e 20 4d 61 | 6e 61 67 65 72 20 68 69 |ation Ma|nager hi|
|00000460| 6e 74 20 6f 72 64 65 72 | 20 66 69 78 20 69 73 20 |nt order| fix is |
|00000470| 69 6e 20 65 66 66 65 63 | 74 2e 20 20 49 6e 20 54 |in effec|t. In T|
|00000480| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 4d 61 6e 61 67 |ranslati|on Manag|
|00000490| 65 72 20 76 65 72 73 69 | 6f 6e 20 31 2e 30 2e 31 |er versi|on 1.0.1|
|000004a0| 20 28 66 69 78 65 64 20 | 69 6e 20 76 65 72 73 69 | (fixed |in versi|
|000004b0| 6f 6e 20 31 2e 30 2e 32 | 20 61 6e 64 20 6c 61 74 |on 1.0.2| and lat|
|000004c0| 65 72 29 20 74 68 65 72 | 65 20 69 73 20 61 20 62 |er) ther|e is a b|
|000004d0| 75 67 20 77 68 65 72 65 | 20 74 68 65 20 68 69 6e |ug where| the hin|
|000004e0| 74 73 20 69 6e 20 44 6f | 54 72 61 6e 73 6c 61 74 |ts in Do|Translat|
|000004f0| 65 53 63 72 61 70 28 29 | 20 61 72 65 20 72 65 76 |eScrap()| are rev|
|00000500| 65 72 73 65 64 20 2d 20 | 74 68 65 20 64 73 74 54 |ersed - |the dstT|
|00000510| 79 70 65 48 69 6e 74 20 | 69 73 20 61 63 74 75 61 |ypeHint |is actua|
|00000520| 6c 6c 79 20 74 68 65 20 | 73 72 63 54 79 70 65 48 |lly the |srcTypeH|
|00000530| 69 6e 74 20 61 6e 64 20 | 76 69 63 65 2d 76 65 72 |int and |vice-ver|
|00000540| 73 61 2e 20 20 49 66 20 | 79 6f 75 20 77 61 6e 74 |sa. If |you want|
|00000550| 20 79 6f 75 72 20 54 72 | 61 6e 73 6c 61 74 69 6f | your Tr|anslatio|
|00000560| 6e 20 45 78 74 65 6e 73 | 69 6f 6e 20 74 6f 20 77 |n Extens|ion to w|
|00000570| 6f 72 6b 20 77 69 74 68 | 20 74 68 65 20 65 61 72 |ork with| the ear|
|00000580| 6c 79 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 74 |ly versi|ons of t|
|00000590| 68 65 20 54 72 61 6e 73 | 6c 61 74 69 6f 6e 20 4d |he Trans|lation M|
|000005a0| 61 6e 61 67 65 72 2c 20 | 61 6e 64 20 79 6f 75 d5 |anager, |and you.|
|000005b0| 72 65 20 74 68 65 73 65 | 20 75 73 69 6e 67 20 74 |re these| using t|
|000005c0| 68 65 73 65 20 73 63 72 | 61 70 20 68 69 6e 74 73 |hese scr|ap hints|
|000005d0| 2c 20 74 68 65 6e 20 79 | 6f 75 20 6e 65 65 64 20 |, then y|ou need |
|000005e0| 74 6f 20 63 68 65 63 6b | 20 74 68 69 73 20 62 69 |to check| this bi|
|000005f0| 74 20 74 6f 20 73 65 65 | 20 77 68 65 72 65 20 79 |t to see| where y|
|00000600| 6f 75 72 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |our dest|ination |
|00000610| 61 6e 64 20 73 6f 75 72 | 63 65 20 68 69 6e 74 73 |and sour|ce hints|
|00000620| 20 61 72 65 2e 0d 20 20 | 20 20 20 67 65 73 74 61 | are.. | gesta|
|00000630| 6c 74 54 72 61 6e 73 6c | 61 74 69 6f 6e 50 50 43 |ltTransl|ationPPC|
|00000640| 41 76 61 69 6c 20 3d 20 | 32 0d 49 66 20 67 65 73 |Avail = |2.If ges|
|00000650| 74 61 6c 74 54 72 61 6e | 73 6c 61 74 69 6f 6e 50 |taltTran|slationP|
|00000660| 50 43 41 76 61 69 6c 20 | 62 69 74 20 69 73 20 73 |PCAvail |bit is s|
|00000670| 65 74 20 74 68 65 6e 20 | 74 68 61 74 20 69 73 20 |et then |that is |
|00000680| 61 6e 20 69 6e 64 69 63 | 61 74 6f 72 20 74 68 61 |an indic|ator tha|
|00000690| 74 20 74 68 65 20 6e 61 | 74 69 76 65 20 50 6f 77 |t the na|tive Pow|
|000006a0| 65 72 50 43 20 54 72 61 | 6e 73 6c 61 74 69 6f 6e |erPC Tra|nslation|
|000006b0| 20 4d 61 6e 61 67 65 72 | 20 6c 69 62 72 61 72 79 | Manager| library|
|000006c0| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 2e 20 20 | is avai|lable. |
|000006d0| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|000006e0| 69 74 d5 73 20 73 61 66 | 65 20 74 6f 20 6d 61 6b |it.s saf|e to mak|
|000006f0| 65 20 61 20 63 61 6c 6c | 20 74 6f 20 74 68 65 20 |e a call| to the |
|00000700| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 4d 61 6e 61 |Translat|ion Mana|
|00000710| 67 65 72 20 66 72 6f 6d | 20 6e 61 74 69 76 65 20 |ger from| native |
|00000720| 50 6f 77 65 72 50 43 20 | 63 6f 64 65 2e 0d 20 20 |PowerPC |code.. |
|00000730| 20 20 20 67 65 73 74 61 | 6c 74 54 72 61 6e 73 6c | gesta|ltTransl|
|00000740| 61 74 69 6f 6e 47 65 74 | 50 61 74 68 41 50 49 41 |ationGet|PathAPIA|
|00000750| 76 61 69 6c 20 3d 20 33 | 0d 54 68 65 20 6e 65 77 |vail = 3|.The new|
|00000760| 20 41 50 49 27 73 20 47 | 65 74 46 69 6c 65 54 72 | API's G|etFileTr|
|00000770| 61 6e 73 6c 61 74 69 6f | 6e 50 61 74 68 28 29 20 |anslatio|nPath() |
|00000780| 61 6e 64 20 47 65 74 50 | 61 74 68 54 72 61 6e 73 |and GetP|athTrans|
|00000790| 6c 61 74 69 6f 6e 44 69 | 61 6c 6f 67 28 29 20 63 |lationDi|alog() c|
|000007a0| 61 6c 6c 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |alls are| availab|
|000007b0| 6c 65 20 69 66 20 74 68 | 65 20 67 65 73 74 61 6c |le if th|e gestal|
|000007c0| 74 54 72 61 6e 73 6c 61 | 74 69 6f 6e 47 65 74 50 |tTransla|tionGetP|
|000007d0| 61 74 68 41 50 49 41 76 | 61 69 6c 20 20 62 69 74 |athAPIAv|ail bit|
|000007e0| 20 69 73 20 73 65 74 2e | 0d 47 65 74 44 6f 63 75 | is set.|.GetDocu|
|000007f0| 6d 65 6e 74 4b 69 6e 64 | 53 74 72 69 6e 67 28 29 |mentKind|String()|
|00000800| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 69 6e | is avai|lable in|
|00000810| 20 61 6c 6c 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 | all ver|sions of|
|00000820| 20 74 68 65 20 54 72 61 | 6e 73 6c 61 74 69 6f 6e | the Tra|nslation|
|00000830| 20 4d 61 6e 61 67 65 72 | 2c 20 74 68 65 72 65 66 | Manager|, theref|
|00000840| 6f 72 65 20 6e 6f 20 67 | 65 73 74 61 6c 74 20 73 |ore no g|estalt s|
|00000850| 65 6c 65 63 74 6f 72 20 | 69 73 20 6e 65 65 64 65 |elector |is neede|
|00000860| 64 20 74 6f 20 63 68 65 | 63 6b 20 66 6f 72 20 69 |d to che|ck for i|
|00000870| 74 73 20 65 78 69 73 74 | 65 6e 63 65 2e 0d 54 68 |ts exist|ence..Th|
|00000880| 65 20 6e 65 77 20 54 72 | 61 6e 73 6c 61 74 69 6f |e new Tr|anslatio|
|00000890| 6e 20 45 78 74 65 6e 73 | 69 6f 6e 20 72 6f 75 74 |n Extens|ion rout|
|000008a0| 69 6e 65 20 44 6f 47 65 | 74 54 72 61 6e 73 6c 61 |ine DoGe|tTransla|
|000008b0| 74 65 64 46 69 6c 65 6e | 61 6d 65 28 29 20 64 6f |tedFilen|ame() do|
|000008c0| 65 73 20 6e 6f 74 20 68 | 61 76 65 20 61 20 67 65 |es not h|ave a ge|
|000008d0| 73 74 61 6c 74 20 73 65 | 6c 65 63 74 6f 72 20 73 |stalt se|lector s|
|000008e0| 69 6e 63 65 20 74 68 65 | 72 65 20 69 73 20 6e 6f |ince the|re is no|
|000008f0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 70 | compati|bility p|
|00000900| 72 6f 62 6c 65 6d 20 72 | 75 6e 6e 69 6e 67 20 61 |roblem r|unning a|
|00000910| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 45 78 74 | Transla|tion Ext|
|00000920| 65 6e 73 69 6f 6e 20 74 | 68 61 74 20 73 75 70 70 |ension t|hat supp|
|00000930| 6f 72 74 73 20 74 68 65 | 20 63 61 6c 6c 20 6f 6e |orts the| call on|
|00000940| 20 61 6e 20 65 61 72 6c | 69 65 72 20 76 65 72 73 | an earl|ier vers|
|00000950| 69 6f 6e 20 6f 66 20 74 | 68 65 20 54 72 61 6e 73 |ion of t|he Trans|
|00000960| 6c 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 2e 20 |lation M|anager. |
|00000970| 20 49 6e 20 74 68 61 74 | 20 63 61 73 65 2c 20 74 | In that| case, t|
|00000980| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 77 69 6c 6c |he funct|ion will|
|00000990| 20 73 69 6d 70 6c 79 20 | 6e 6f 74 20 62 65 20 63 | simply |not be c|
|000009a0| 61 6c 6c 65 64 2e 0d 54 | 68 65 20 4e 65 77 20 54 |alled..T|he New T|
|000009b0| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 4d 61 6e 61 67 |ranslati|on Manag|
|000009c0| 65 72 20 41 50 49 27 73 | 0d 4f 6e 65 20 6f 66 20 |er API's|.One of |
|000009d0| 74 68 65 20 6d 6f 73 74 | 20 67 6c 61 72 69 6e 67 |the most| glaring|
|000009e0| 20 6c 69 6d 69 74 61 74 | 69 6f 6e 73 20 6f 66 20 | limitat|ions of |
|000009f0| 74 68 65 20 31 2e 30 20 | 54 72 61 6e 73 6c 61 74 |the 1.0 |Translat|
|00000a00| 69 6f 6e 20 4d 61 6e 61 | 67 65 72 20 41 50 49 20 |ion Mana|ger API |
|00000a10| 77 61 73 20 74 68 61 74 | 20 74 68 65 20 66 75 6e |was that| the fun|
|00000a20| 63 74 69 6f 6e 20 43 61 | 6e 44 6f 63 42 65 4f 70 |ction Ca|nDocBeOp|
|00000a30| 65 6e 65 64 28 29 20 63 | 6f 75 6c 64 6e 27 74 20 |ened() c|ouldn't |
|00000a40| 62 65 20 75 73 65 64 20 | 69 6e 20 74 68 65 20 63 |be used |in the c|
|00000a50| 61 73 65 20 77 68 65 72 | 65 20 61 20 74 72 61 6e |ase wher|e a tran|
|00000a60| 73 6c 61 74 69 6f 6e 20 | 70 72 65 66 65 72 65 6e |slation |preferen|
|00000a70| 63 65 20 64 69 64 20 6e | 6f 74 20 65 78 69 73 74 |ce did n|ot exist|
|00000a80| 2e 20 20 59 6f 75 20 77 | 6f 75 6c 64 20 68 61 76 |. You w|ould hav|
|00000a90| 65 20 74 6f 20 73 65 74 | 20 74 68 65 20 74 72 61 |e to set| the tra|
|00000aa0| 6e 73 6c 61 74 69 6f 6e | 20 70 72 65 66 65 72 65 |nslation| prefere|
|00000ab0| 6e 63 65 20 6d 61 6e 75 | 61 6c 6c 79 20 75 73 69 |nce manu|ally usi|
|00000ac0| 6e 67 20 74 68 65 20 61 | 75 74 6f 6d 61 74 69 63 |ng the a|utomatic|
|00000ad0| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 75 73 65 | transla|tion use|
|00000ae0| 72 20 69 6e 74 65 72 66 | 61 63 65 20 69 6e 20 74 |r interf|ace in t|
|00000af0| 68 65 20 46 69 6e 64 65 | 72 20 6f 72 20 53 74 61 |he Finde|r or Sta|
|00000b00| 6e 64 61 72 64 20 46 69 | 6c 65 2e 20 20 54 68 69 |ndard Fi|le. Thi|
|00000b10| 73 20 6d 65 61 6e 74 20 | 66 6f 72 20 61 6c 6c 20 |s meant |for all |
|00000b20| 70 75 72 70 6f 73 65 73 | 2c 20 74 68 61 74 20 79 |purposes|, that y|
|00000b30| 6f 75 20 63 6f 75 6c 64 | 20 6e 6f 74 20 70 72 6f |ou could| not pro|
|00000b40| 67 72 61 6d 6d 61 74 69 | 63 61 6c 6c 79 20 75 73 |grammati|cally us|
|00000b50| 65 20 74 68 65 20 54 72 | 61 6e 73 6c 61 74 69 6f |e the Tr|anslatio|
|00000b60| 6e 20 4d 61 6e 61 67 65 | 72 2e 20 20 0d 53 74 61 |n Manage|r. .Sta|
|00000b70| 72 74 69 6e 67 20 77 69 | 74 68 20 54 72 61 6e 73 |rting wi|th Trans|
|00000b80| 6c 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 20 31 |lation M|anager 1|
|00000b90| 2e 31 20 74 68 69 73 20 | 6c 69 6d 69 74 61 74 69 |.1 this |limitati|
|00000ba0| 6f 6e 20 68 61 73 20 62 | 65 65 6e 20 72 65 6d 6f |on has b|een remo|
|00000bb0| 76 65 64 20 77 69 74 68 | 20 74 77 6f 20 6e 65 77 |ved with| two new|
|00000bc0| 20 41 50 49 27 73 20 47 | 65 74 50 61 74 68 46 72 | API's G|etPathFr|
|00000bd0| 6f 6d 54 72 61 6e 73 6c | 61 74 69 6f 6e 44 69 61 |omTransl|ationDia|
|00000be0| 6c 6f 67 28 29 20 61 6e | 64 20 47 65 74 46 69 6c |log() an|d GetFil|
|00000bf0| 65 54 72 61 6e 73 6c 61 | 74 69 6f 6e 50 61 74 68 |eTransla|tionPath|
|00000c00| 73 28 29 2e 20 20 54 68 | 65 20 66 75 6e 63 74 69 |s(). Th|e functi|
|00000c10| 6f 6e 20 47 65 74 50 61 | 74 68 46 72 6f 6d 54 72 |on GetPa|thFromTr|
|00000c20| 61 6e 73 6c 61 74 69 6f | 6e 44 69 61 6c 6f 67 28 |anslatio|nDialog(|
|00000c30| 29 20 61 6c 6c 6f 77 73 | 20 79 6f 75 20 74 6f 20 |) allows| you to |
|00000c40| 70 6f 73 74 20 74 68 65 | 20 54 72 61 6e 73 6c 61 |post the| Transla|
|00000c50| 74 69 6f 6e 20 44 69 61 | 6c 6f 67 20 62 6f 78 20 |tion Dia|log box |
|00000c60| 70 72 6f 67 72 61 6d 6d | 61 74 69 63 61 6c 6c 79 |programm|atically|
|00000c70| 20 77 68 69 6c 65 20 74 | 68 65 20 66 75 6e 63 74 | while t|he funct|
|00000c80| 69 6f 6e 20 47 65 74 46 | 69 6c 65 54 72 61 6e 73 |ion GetF|ileTrans|
|00000c90| 6c 61 74 69 6f 6e 50 61 | 74 68 73 28 29 20 69 73 |lationPa|ths() is|
|00000ca0| 20 61 20 6c 6f 77 20 6c | 65 76 65 6c 20 61 63 63 | a low l|evel acc|
|00000cb0| 65 73 73 20 72 6f 75 74 | 69 6e 65 20 61 6c 6c 6f |ess rout|ine allo|
|00000cc0| 77 69 6e 67 20 79 6f 75 | 20 74 6f 20 67 65 74 20 |wing you| to get |
|00000cd0| 61 6c 6c 20 74 68 65 20 | 74 72 61 6e 73 6c 61 74 |all the |translat|
|00000ce0| 69 6f 6e 20 63 61 70 61 | 62 69 6c 69 74 69 65 73 |ion capa|bilities|
|00000cf0| 20 6f 66 20 74 68 65 20 | 54 72 61 6e 73 6c 61 74 | of the |Translat|
|00000d00| 69 6f 6e 20 4d 61 6e 61 | 67 65 72 2e 0d 41 64 64 |ion Mana|ger..Add|
|00000d10| 69 74 69 6f 6e 61 6c 20 | 41 50 49 d5 73 20 68 61 |itional |API.s ha|
|00000d20| 76 65 20 62 65 65 6e 20 | 61 64 64 65 64 20 74 6f |ve been |added to|
|00000d30| 20 70 72 6f 76 69 64 65 | 20 61 63 63 65 73 73 20 | provide| access |
|00000d40| 74 6f 20 74 68 65 20 6b | 69 6e 64 20 73 74 72 69 |to the k|ind stri|
|00000d50| 6e 67 73 2c 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ngs, the| name of|
|00000d60| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 45 78 74 | Transla|tion Ext|
|00000d70| 65 6e 73 69 6f 6e 73 2c | 20 61 73 20 77 65 6c 6c |ensions,| as well|
|00000d80| 20 61 73 20 74 6f 20 70 | 72 6f 67 72 61 6d 6d 61 | as to p|rogramma|
|00000d90| 74 69 63 61 6c 6c 79 20 | 65 78 65 63 75 74 65 20 |tically |execute |
|00000da0| 73 63 72 61 70 20 74 72 | 61 6e 73 6c 61 74 69 6f |scrap tr|anslatio|
|00000db0| 6e 73 2e 20 20 54 68 65 | 73 65 20 77 69 6c 6c 20 |ns. The|se will |
|00000dc0| 62 65 20 64 69 73 63 75 | 73 73 65 64 20 6c 61 74 |be discu|ssed lat|
|00000dd0| 65 72 20 69 6e 20 74 68 | 69 73 20 73 65 63 74 69 |er in th|is secti|
|00000de0| 6f 6e 2e 0d 44 69 73 70 | 6c 61 79 69 6e 67 20 54 |on..Disp|laying T|
|00000df0| 68 65 20 54 72 61 6e 73 | 6c 61 74 69 6f 6e 20 44 |he Trans|lation D|
|00000e00| 69 61 6c 6f 67 20 42 6f | 78 20 50 72 6f 67 72 61 |ialog Bo|x Progra|
|00000e10| 6d 6d 61 74 69 63 61 6c | 6c 79 0d 20 20 20 20 20 |mmatical|ly. |
|00000e20| 20 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 47 65 | pascal |OSErr Ge|
|00000e30| 74 50 61 74 68 46 72 6f | 6d 54 72 61 6e 73 6c 61 |tPathFro|mTransla|
|00000e40| 74 69 6f 6e 44 69 61 6c | 6f 67 28 63 6f 6e 73 74 |tionDial|og(const|
|00000e50| 20 46 53 53 70 65 63 2a | 20 20 20 20 20 20 20 20 | FSSpec*| |
|00000e60| 74 68 65 44 6f 63 75 6d | 65 6e 74 2c 0d 20 20 20 |theDocum|ent,. |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6f 6e | | con|
|00000ea0| 73 74 20 46 53 53 70 65 | 63 2a 20 20 20 20 20 20 |st FSSpe|c* |
|00000eb0| 20 20 74 68 65 41 70 70 | 6c 69 63 61 74 69 6f 6e | theApp|lication|
|00000ec0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00000ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ef0| 20 20 63 6f 6e 73 74 20 | 54 79 70 65 73 42 6c 6f | const |TypesBlo|
|00000f00| 63 6b 50 74 72 20 20 74 | 79 70 65 4c 69 73 74 2c |ckPtr t|ypeList,|
|00000f10| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f40| 20 44 6f 63 4f 70 65 6e | 4d 65 74 68 6f 64 2a 20 | DocOpen|Method* |
|00000f50| 20 20 20 20 20 20 68 6f | 77 54 6f 4f 70 65 6e 2c | ho|wToOpen,|
|00000f60| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f90| 20 46 69 6c 65 54 72 61 | 6e 73 6c 61 74 69 6f 6e | FileTra|nslation|
|00000fa0| 53 70 65 63 2a 20 68 6f | 77 54 6f 54 72 61 6e 73 |Spec* ho|wToTrans|
|00000fb0| 6c 61 74 65 29 0d 41 73 | 20 6d 65 6e 74 69 6f 6e |late).As| mention|
|00000fc0| 65 64 20 69 6e 20 74 68 | 65 20 65 61 72 6c 69 65 |ed in th|e earlie|
|00000fd0| 72 2c 20 47 65 74 50 61 | 74 68 46 72 6f 6d 54 72 |r, GetPa|thFromTr|
|00000fe0| 61 6e 73 6c 61 74 69 6f | 6e 44 69 61 6c 6f 67 28 |anslatio|nDialog(|
|00000ff0| 29 20 69 73 20 75 73 65 | 64 20 74 6f 20 70 72 6f |) is use|d to pro|
|00001000| 67 72 61 6d 6d 61 74 69 | 63 61 6c 6c 79 20 64 69 |grammati|cally di|
|00001010| 73 70 6c 61 79 20 74 68 | 65 20 54 72 61 6e 73 6c |splay th|e Transl|
|00001020| 61 74 69 6f 6e 20 44 69 | 61 6c 6f 67 20 62 6f 78 |ation Di|alog box|
|00001030| 2e 20 20 54 68 69 73 20 | 68 61 73 20 74 68 65 20 |. This |has the |
|00001040| 22 73 69 64 65 2d 65 66 | 66 65 63 74 22 20 6f 66 |"side-ef|fect" of|
|00001050| 20 73 65 74 74 69 6e 67 | 20 61 20 70 72 65 66 65 | setting| a prefe|
|00001060| 72 65 6e 63 65 20 73 6f | 20 6e 65 78 74 20 74 69 |rence so| next ti|
|00001070| 6d 65 20 20 20 43 61 6e | 44 6f 63 42 65 4f 70 65 |me Can|DocBeOpe|
|00001080| 6e 65 64 28 29 20 69 73 | 20 63 61 6c 6c 65 64 20 |ned() is| called |
|00001090| 69 74 20 77 69 6c 6c 20 | 68 61 76 65 20 74 68 65 |it will |have the|
|000010a0| 20 70 72 65 66 65 72 65 | 6e 63 65 20 61 6e 64 20 | prefere|nce and |
|000010b0| 73 75 63 63 65 65 64 2e | 0d 47 65 74 50 61 74 68 |succeed.|.GetPath|
|000010c0| 46 72 6f 6d 54 72 61 6e | 73 6c 61 74 69 6f 6e 44 |FromTran|slationD|
|000010d0| 69 61 6c 6f 67 28 29 20 | 74 61 72 67 65 74 73 20 |ialog() |targets |
|000010e0| 74 68 65 20 66 69 6c 65 | 20 73 70 65 63 69 66 69 |the file| specifi|
|000010f0| 65 64 20 62 79 20 74 68 | 65 20 74 68 65 44 6f 63 |ed by th|e theDoc|
|00001100| 75 6d 65 6e 74 20 61 6e | 64 20 61 74 74 65 6d 70 |ument an|d attemp|
|00001110| 74 73 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 61 |ts to ge|nerate a|
|00001120| 20 6c 69 73 74 20 6f 66 | 20 74 72 61 6e 73 6c 61 | list of| transla|
|00001130| 74 69 6f 6e 20 70 61 74 | 68 73 20 72 65 73 75 6c |tion pat|hs resul|
|00001140| 74 69 6e 67 20 69 6e 20 | 61 20 64 6f 63 75 6d 65 |ting in |a docume|
|00001150| 6e 74 20 72 65 61 64 61 | 62 6c 65 20 62 79 20 74 |nt reada|ble by t|
|00001160| 68 65 20 74 61 72 67 65 | 74 20 61 70 70 6c 69 63 |he targe|t applic|
|00001170| 61 74 69 6f 6e 20 73 70 | 65 63 69 66 69 65 64 20 |ation sp|ecified |
|00001180| 62 79 20 74 68 65 20 74 | 68 65 41 70 70 6c 69 63 |by the t|heApplic|
|00001190| 61 74 69 6f 6e 2e 20 20 | 54 68 65 20 70 61 72 61 |ation. |The para|
|000011a0| 6d 65 74 65 72 20 74 79 | 70 65 4c 69 73 74 20 73 |meter ty|peList s|
|000011b0| 70 65 63 69 66 69 65 73 | 2c 20 69 6e 20 61 20 30 |pecifies|, in a 0|
|000011c0| 4c 20 74 65 72 6d 69 6e | 61 74 65 64 20 66 6f 72 |L termin|ated for|
|000011d0| 6d 2c 20 61 20 6c 69 73 | 74 20 6f 66 20 66 69 6c |m, a lis|t of fil|
|000011e0| 65 20 74 79 70 65 73 20 | 74 6f 20 74 72 61 6e 73 |e types |to trans|
|000011f0| 6c 61 74 65 20 74 68 65 | 20 74 61 72 67 65 74 20 |late the| target |
|00001200| 64 6f 63 75 6d 65 6e 74 | 20 69 6e 74 6f 2e 20 20 |document| into. |
|00001210| 54 68 65 20 6f 72 64 65 | 72 20 69 6e 20 74 68 65 |The orde|r in the|
|00001220| 20 6c 69 73 74 20 69 73 | 20 69 6d 70 6f 72 74 61 | list is| importa|
|00001230| 6e 74 2e 20 20 54 68 65 | 20 66 69 72 73 74 20 69 |nt. The| first i|
|00001240| 74 65 6d 20 73 68 6f 75 | 6c 64 20 62 65 20 74 68 |tem shou|ld be th|
|00001250| 65 20 66 69 6c 65 20 74 | 79 70 65 20 6d 6f 73 74 |e file t|ype most|
|00001260| 20 64 65 73 69 72 65 64 | 20 61 6e 64 20 74 68 65 | desired| and the|
|00001270| 20 6c 61 73 74 20 69 74 | 65 6d 20 73 68 6f 75 6c | last it|em shoul|
|00001280| 64 20 62 65 20 74 68 65 | 20 66 69 6c 65 20 74 79 |d be the| file ty|
|00001290| 70 65 20 6c 65 61 73 74 | 20 77 61 6e 74 65 64 2e |pe least| wanted.|
|000012a0| 20 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | The fo|llowing |
|000012b0| 74 77 6f 20 70 61 72 61 | 6d 65 74 65 72 73 20 68 |two para|meters h|
|000012c0| 6f 77 54 6f 4f 70 65 6e | 20 61 6e 64 20 68 6f 77 |owToOpen| and how|
|000012d0| 54 6f 54 72 61 6e 73 6c | 61 74 65 20 61 72 65 20 |ToTransl|ate are |
|000012e0| 72 65 74 75 72 6e 65 64 | 20 6f 6e 63 65 20 74 68 |returned| once th|
|000012f0| 65 20 75 73 65 72 20 68 | 61 73 20 69 6e 74 65 72 |e user h|as inter|
|00001300| 61 63 74 65 64 20 77 69 | 74 68 20 74 68 65 20 54 |acted wi|th the T|
|00001310| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 44 69 61 6c 6f |ranslati|on Dialo|
|00001320| 67 20 62 6f 78 20 61 6e | 64 20 77 69 6c 6c 20 63 |g box an|d will c|
|00001330| 6f 6e 74 61 69 6e 20 74 | 68 65 20 74 72 61 6e 73 |ontain t|he trans|
|00001340| 6c 61 74 69 6f 6e 20 6f | 70 65 6e 20 6d 65 74 68 |lation o|pen meth|
|00001350| 6f 64 20 61 6e 64 20 74 | 68 65 20 74 72 61 6e 73 |od and t|he trans|
|00001360| 6c 61 74 69 6f 6e 20 73 | 70 65 63 69 66 69 63 61 |lation s|pecifica|
|00001370| 74 69 6f 6e 2e 20 20 49 | 74 d5 73 20 69 6d 70 6f |tion. I|t.s impo|
|00001380| 72 74 61 6e 74 20 74 6f | 20 70 6f 69 6e 74 20 6f |rtant to| point o|
|00001390| 75 74 20 74 68 65 20 68 | 6f 77 54 6f 54 72 61 6e |ut the h|owToTran|
|000013a0| 73 6c 61 74 65 20 69 73 | 20 6f 6e 6c 79 20 76 61 |slate is| only va|
|000013b0| 6c 69 64 20 69 66 20 68 | 6f 77 54 6f 4f 70 65 6e |lid if h|owToOpen|
|000013c0| 20 69 73 20 65 71 75 61 | 6c 20 74 6f 20 64 6f 6d | is equa|l to dom|
|000013d0| 54 72 61 6e 73 6c 61 74 | 65 46 69 72 73 74 2c 20 |Translat|eFirst, |
|000013e0| 6f 74 68 65 72 77 69 73 | 65 20 69 74 d5 73 20 75 |otherwis|e it.s u|
|000013f0| 6e 64 65 66 69 6e 65 64 | 2e 0d 4e 6f 74 65 3a 09 |ndefined|..Note:.|
|00001400| 4e 6f 6e 65 20 6f 66 20 | 74 68 65 20 70 61 72 61 |None of |the para|
|00001410| 6d 65 74 65 72 73 20 61 | 72 65 20 6f 70 74 69 6f |meters a|re optio|
|00001420| 6e 61 6c 20 61 6e 64 20 | 4e 55 4c 4c 20 63 61 6e |nal and |NULL can|
|00001430| 6e 6f 74 20 62 65 20 70 | 61 73 73 65 64 20 69 6e |not be p|assed in|
|00001440| 20 70 6c 61 63 65 20 6f | 66 20 74 68 65 6d 2e 0d | place o|f them..|
|00001450| 41 20 63 6f 6d 6d 6f 6e | 20 77 61 79 20 6f 66 20 |A common| way of |
|00001460| 75 73 69 6e 67 20 74 68 | 69 73 20 72 6f 75 74 69 |using th|is routi|
|00001470| 6e 65 20 61 6c 6f 6e 67 | 20 77 69 74 68 20 43 61 |ne along| with Ca|
|00001480| 6e 44 6f 63 42 65 4f 70 | 65 6e 65 64 28 29 20 63 |nDocBeOp|ened() c|
|00001490| 61 6e 20 62 65 20 73 65 | 65 6e 20 69 6e 20 74 68 |an be se|en in th|
|000014a0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 6e 69 70 |e follow|ing snip|
|000014b0| 70 65 74 20 6f 66 20 63 | 6f 64 65 3a 0d 20 20 20 |pet of c|ode:. |
|000014c0| 20 20 2f 2f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f | //____|________|
|000014d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000014e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000014f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001500| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 20 20 20 20 20 2f |________|_. /|
|00001510| 2f 0d 20 20 20 20 20 2f | 2f 20 54 72 61 6e 73 6c |/. /|/ Transl|
|00001520| 61 74 65 0d 20 20 20 20 | 20 2f 2f 0d 20 20 20 20 |ate. | //. |
|00001530| 20 2f 2f 20 54 68 69 73 | 20 72 6f 75 74 69 6e 65 | // This| routine|
|00001540| 20 74 72 61 6e 73 6c 61 | 74 65 73 20 61 20 66 69 | transla|tes a fi|
|00001550| 6c 65 2e 20 20 49 74 20 | 61 73 73 75 6d 65 73 20 |le. It |assumes |
|00001560| 74 68 61 74 20 74 68 65 | 20 61 70 70 6c 69 63 61 |that the| applica|
|00001570| 74 69 6f 6e 20 68 61 73 | 0d 20 20 20 20 20 2f 2f |tion has|. //|
|00001580| 20 74 68 65 20 73 69 67 | 6e 61 74 75 72 65 20 27 | the sig|nature '|
|00001590| 74 74 78 74 27 20 61 6e | 64 20 63 61 6e 20 6f 6e |ttxt' an|d can on|
|000015a0| 6c 79 20 63 61 6e 20 72 | 65 61 64 20 74 68 65 20 |ly can r|ead the |
|000015b0| 64 6f 63 75 6d 65 6e 74 | 20 74 79 70 65 73 20 27 |document| types '|
|000015c0| 74 74 72 6f 27 0d 20 20 | 20 20 20 2f 2f 20 61 6e |ttro'. | // an|
|000015d0| 64 20 27 54 45 58 54 27 | 0d 20 20 20 20 20 2f 2f |d 'TEXT'|. //|
|000015e0| 0d 20 20 20 20 20 4f 53 | 45 72 72 20 54 72 61 6e |. OS|Err Tran|
|000015f0| 73 6c 61 74 65 28 63 6f | 6e 73 74 20 46 53 53 70 |slate(co|nst FSSp|
|00001600| 65 63 2a 20 74 61 72 67 | 65 74 44 6f 63 75 6d 65 |ec* targ|etDocume|
|00001610| 6e 74 2c 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |nt, . | |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 63 6f 6e 73 74 20 | | const |
|00001630| 46 53 53 70 65 63 2a 20 | 64 65 73 74 69 6e 61 74 |FSSpec* |destinat|
|00001640| 69 6f 6e 44 6f 63 75 6d | 65 6e 74 2c 0d 20 20 20 |ionDocum|ent,. |
|00001650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001660| 20 20 63 6f 6e 73 74 20 | 46 53 53 70 65 63 2a 20 | const |FSSpec* |
|00001670| 74 68 65 41 70 70 6c 69 | 63 61 74 69 6f 6e 29 0d |theAppli|cation).|
|00001680| 20 20 20 20 20 7b 0d 20 | 20 20 20 20 4f 53 54 79 | {. | OSTy|
|00001690| 70 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |pe | |
|000016a0| 20 74 79 70 65 4c 69 73 | 74 5b 33 5d 20 3d 20 7b | typeLis|t[3] = {|
|000016b0| 20 27 74 74 72 6f 27 2c | 20 27 54 45 58 54 27 2c | 'ttro',| 'TEXT',|
|000016c0| 20 30 4c 20 7d 3b 0d 20 | 20 20 20 20 44 6f 63 4f | 0L };. | DocO|
|000016d0| 70 65 6e 4d 65 74 68 6f | 64 20 20 20 20 20 20 20 |penMetho|d |
|000016e0| 20 68 6f 77 54 6f 4f 70 | 65 6e 3b 0d 20 20 20 20 | howToOp|en;. |
|000016f0| 20 46 69 6c 65 54 72 61 | 6e 73 6c 61 74 69 6f 6e | FileTra|nslation|
|00001700| 53 70 65 63 20 20 68 6f | 77 54 6f 54 72 61 6e 73 |Spec ho|wToTrans|
|00001710| 6c 61 74 65 3b 0d 20 20 | 20 20 20 4f 53 45 72 72 |late;. | OSErr|
|00001720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001730| 72 65 73 75 6c 74 3b 0d | 20 20 20 20 20 0d 20 20 |result;.| . |
|00001740| 20 20 20 2f 2f 20 54 72 | 79 20 74 6f 20 67 65 74 | // Tr|y to get|
|00001750| 20 74 68 65 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e | the tra|nslation|
|00001760| 20 70 61 74 68 20 62 61 | 73 65 64 20 6f 6e 20 74 | path ba|sed on t|
|00001770| 68 65 20 70 72 65 66 65 | 72 65 6e 63 65 20 28 69 |he prefe|rence (i|
|00001780| 66 20 6f 6e 65 20 69 73 | 20 73 65 74 29 0d 20 20 |f one is| set). |
|00001790| 20 20 20 72 65 73 75 6c | 74 20 3d 20 43 61 6e 44 | resul|t = CanD|
|000017a0| 6f 63 42 65 4f 70 65 6e | 65 64 28 74 61 72 67 65 |ocBeOpen|ed(targe|
|000017b0| 74 44 6f 63 75 6d 65 6e | 74 2c 20 0d 20 20 20 20 |tDocumen|t, . |
|000017c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017d0| 20 20 20 20 20 20 20 20 | 20 74 68 65 41 70 70 6c | | theAppl|
|000017e0| 69 63 61 74 69 6f 6e 2d | 3e 76 52 65 66 4e 75 6d |ication-|>vRefNum|
|000017f0| 2c 20 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |, . | |
|00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001810| 27 74 74 78 74 27 2c 0d | 20 20 20 20 20 20 20 20 |'ttxt',.| |
|00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001830| 20 20 20 20 20 74 79 70 | 65 4c 69 73 74 2c 0d 20 | typ|eList,. |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 61 6c 73 | | fals|
|00001860| 65 2c 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e,. | |
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001880| 26 68 6f 77 54 6f 4f 70 | 65 6e 2c 0d 20 20 20 20 |&howToOp|en,. |
|00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018a0| 20 20 20 20 20 20 20 20 | 20 26 68 6f 77 54 6f 54 | | &howToT|
|000018b0| 72 61 6e 73 6c 61 74 65 | 29 3b 0d 20 20 20 20 20 |ranslate|);. |
|000018c0| 2f 2f 20 44 69 64 20 69 | 74 20 77 6f 72 6b 3f 0d |// Did i|t work?.|
|000018d0| 20 20 20 20 20 69 66 20 | 28 72 65 73 75 6c 74 20 | if |(result |
|000018e0| 3d 3d 20 6e 6f 50 72 65 | 66 41 70 70 45 72 72 29 |== noPre|fAppErr)|
|000018f0| 20 20 20 20 0d 20 20 20 | 20 20 20 20 7b 0d 20 20 | . | {. |
|00001900| 20 20 20 20 20 2f 2f 20 | 43 6f 75 6c 64 6e 27 74 | // |Couldn't|
|00001910| 20 66 69 6e 64 20 61 20 | 70 61 74 68 2c 20 72 75 | find a |path, ru|
|00001920| 6e 20 74 68 65 20 54 72 | 61 6e 73 6c 61 74 69 6f |n the Tr|anslatio|
|00001930| 6e 20 44 69 61 6c 6f 67 | 20 62 6f 78 20 74 6f 20 |n Dialog| box to |
|00001940| 67 65 74 20 74 68 65 20 | 70 61 74 68 0d 20 20 20 |get the |path. |
|00001950| 20 20 20 20 2f 2f 20 61 | 6e 64 20 73 65 74 20 74 | // a|nd set t|
|00001960| 68 65 20 70 72 65 66 65 | 72 65 6e 63 65 0d 20 20 |he prefe|rence. |
|00001970| 20 20 20 20 20 72 65 73 | 75 6c 74 20 3d 20 47 65 | res|ult = Ge|
|00001980| 74 50 61 74 68 46 72 6f | 6d 54 72 61 6e 73 6c 61 |tPathFro|mTransla|
|00001990| 74 69 6f 6e 44 69 61 6c | 6f 67 28 74 61 72 67 65 |tionDial|og(targe|
|000019a0| 74 44 6f 63 75 6d 65 6e | 74 2c 0d 20 20 20 20 20 |tDocumen|t,. |
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019d0| 20 20 20 20 20 20 20 20 | 74 68 65 41 70 70 6c 69 | |theAppli|
|000019e0| 63 61 74 69 6f 6e 2c 0d | 20 20 20 20 20 20 20 20 |cation,.| |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a10| 20 20 20 20 20 74 79 70 | 65 4c 69 73 74 2c 0d 20 | typ|eList,. |
|00001a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 26 68 6f 77 | | &how|
|00001a50| 54 6f 4f 70 65 6e 2c 0d | 20 20 20 20 20 20 20 20 |ToOpen,.| |
|00001a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a80| 20 20 20 20 20 26 68 6f | 77 54 6f 54 72 61 6e 73 | &ho|wToTrans|
|00001a90| 6c 61 74 65 29 3b 0d 20 | 20 20 20 20 20 20 7d 0d |late);. | }.|
|00001aa0| 20 20 20 20 20 2f 2f 20 | 44 69 64 20 77 65 20 67 | // |Did we g|
|00001ab0| 65 74 20 61 20 70 61 74 | 68 20 66 72 6f 6d 20 65 |et a pat|h from e|
|00001ac0| 69 74 68 65 72 20 43 61 | 6e 44 6f 63 42 65 4f 70 |ither Ca|nDocBeOp|
|00001ad0| 65 6e 65 64 20 6f 72 0d | 20 20 20 20 20 2f 2f 20 |ened or.| // |
|00001ae0| 47 65 74 50 61 74 68 46 | 72 6f 6d 54 72 61 6e 73 |GetPathF|romTrans|
|00001af0| 6c 61 74 69 6f 6e 44 69 | 61 6c 6f 67 2c 20 61 6e |lationDi|alog, an|
|00001b00| 64 20 64 6f 65 73 20 74 | 68 65 20 74 72 61 6e 73 |d does t|he trans|
|00001b10| 6c 61 74 69 6f 6e 20 0d | 20 20 20 20 20 2f 2f 20 |lation .| // |
|00001b20| 70 61 74 68 20 73 70 65 | 63 69 66 69 65 64 20 72 |path spe|cified r|
|00001b30| 65 71 75 69 72 65 20 74 | 72 61 6e 73 6c 61 74 69 |equire t|ranslati|
|00001b40| 6f 6e 3f 0d 20 20 20 20 | 20 69 66 20 28 28 72 65 |on?. | if ((re|
|00001b50| 73 75 6c 74 20 3d 3d 20 | 6e 6f 45 72 72 29 20 26 |sult == |noErr) &|
|00001b60| 26 20 28 68 6f 77 54 6f | 4f 70 65 6e 20 3d 3d 20 |& (howTo|Open == |
|00001b70| 64 6f 6d 54 72 61 6e 73 | 6c 61 74 65 46 69 72 73 |domTrans|lateFirs|
|00001b80| 74 29 29 0d 20 20 20 20 | 20 20 20 7b 0d 20 20 20 |t)). | {. |
|00001b90| 20 20 20 20 2f 2f 20 54 | 72 61 6e 73 6c 61 74 65 | // T|ranslate|
|00001ba0| 20 74 68 65 20 66 69 6c | 65 0d 20 20 20 20 20 20 | the fil|e. |
|00001bb0| 20 72 65 73 75 6c 74 20 | 3d 20 54 72 61 6e 73 6c | result |= Transl|
|00001bc0| 61 74 65 46 69 6c 65 28 | 74 61 72 67 65 74 44 6f |ateFile(|targetDo|
|00001bd0| 63 75 6d 65 6e 74 2c 20 | 0d 20 20 20 20 20 20 20 |cument, |. |
|00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bf0| 20 20 20 20 20 20 20 64 | 65 73 74 69 6e 61 74 69 | d|estinati|
|00001c00| 6f 6e 44 6f 63 75 6d 65 | 6e 74 2c 20 0d 20 20 20 |onDocume|nt, . |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c20| 20 20 20 20 20 20 20 20 | 20 20 20 26 68 6f 77 54 | | &howT|
|00001c30| 6f 54 72 61 6e 73 6c 61 | 74 65 29 3b 0d 20 20 20 |oTransla|te);. |
|00001c40| 20 20 20 20 7d 20 0d 20 | 20 20 20 20 20 20 0d 20 | } . | . |
|00001c50| 20 20 20 20 72 65 74 75 | 72 6e 20 72 65 73 75 6c | retu|rn resul|
|00001c60| 74 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t; | |
|00001c70| 20 20 20 20 20 20 20 20 | 0d 20 20 20 20 20 7d 0d | |. }.|
|00001c80| 47 65 74 74 69 6e 67 20 | 41 6c 6c 20 54 68 65 20 |Getting |All The |
|00001c90| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 50 61 74 68 |Translat|ion Path|
|00001ca0| 73 0d 41 74 20 74 68 65 | 20 6c 6f 77 20 6c 65 76 |s.At the| low lev|
|00001cb0| 65 6c 2c 20 74 68 65 20 | 6e 65 77 20 72 6f 75 74 |el, the |new rout|
|00001cc0| 69 6e 65 20 47 65 74 46 | 69 6c 65 54 72 61 6e 73 |ine GetF|ileTrans|
|00001cd0| 6c 61 74 69 6f 6e 50 61 | 74 68 73 28 29 20 63 61 |lationPa|ths() ca|
|00001ce0| 6e 20 62 65 20 75 73 65 | 64 20 74 6f 20 67 65 74 |n be use|d to get|
|00001cf0| 20 72 61 77 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e | raw tra|nslation|
|00001d00| 20 70 61 74 68 73 2e 20 | 20 54 68 65 20 70 61 74 | paths. | The pat|
|00001d10| 68 73 20 61 72 65 20 65 | 61 63 68 20 6f 66 20 74 |hs are e|ach of t|
|00001d20| 68 65 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 70 |he trans|lation p|
|00001d30| 61 74 68 73 20 74 68 61 | 74 20 61 6c 6c 6f 77 20 |aths tha|t allow |
|00001d40| 61 20 73 70 65 63 69 66 | 69 63 20 64 6f 63 75 6d |a specif|ic docum|
|00001d50| 65 6e 74 20 74 6f 20 62 | 65 20 74 72 61 6e 73 6c |ent to b|e transl|
|00001d60| 61 74 65 64 20 74 6f 20 | 74 68 65 20 74 61 72 67 |ated to |the targ|
|00001d70| 65 74 20 74 79 70 65 20 | 28 75 6e 64 65 72 20 73 |et type |(under s|
|00001d80| 6f 6d 65 20 63 6f 6e 73 | 74 72 61 69 6e 74 73 20 |ome cons|traints |
|00001d90| 74 68 61 74 20 61 72 65 | 20 64 69 73 63 75 73 73 |that are| discuss|
|00001da0| 65 64 20 6c 61 74 65 72 | 29 2e 20 20 41 20 73 70 |ed later|). A sp|
|00001db0| 65 63 69 66 69 63 20 74 | 72 61 6e 73 6c 61 74 69 |ecific t|ranslati|
|00001dc0| 6f 6e 20 6d 61 79 20 68 | 61 76 65 20 6f 6e 65 20 |on may h|ave one |
|00001dd0| 6f 72 20 6d 61 6e 79 20 | 70 61 74 68 73 20 2d 20 |or many |paths - |
|00001de0| 74 68 61 74 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 |that dep|ends on |
|00001df0| 74 68 65 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |the tran|slation |
|00001e00| 69 74 73 65 6c 66 20 61 | 6e 64 20 74 68 65 20 63 |itself a|nd the c|
|00001e10| 61 70 61 62 69 6c 69 74 | 69 65 73 20 6f 66 20 74 |apabilit|ies of t|
|00001e20| 68 65 20 54 72 61 6e 73 | 6c 61 74 69 6f 6e 20 45 |he Trans|lation E|
|00001e30| 78 74 65 6e 73 69 6f 6e | 73 20 69 6e 73 74 61 6c |xtension|s instal|
|00001e40| 6c 65 64 2e 0d 47 65 74 | 46 69 6c 65 54 72 61 6e |led..Get|FileTran|
|00001e50| 73 6c 61 74 69 6f 6e 50 | 61 74 68 73 28 29 20 69 |slationP|aths() i|
|00001e60| 73 20 64 65 66 69 6e 65 | 64 20 61 73 3a 0d 20 20 |s define|d as:. |
|00001e70| 20 20 20 20 70 61 73 63 | 61 6c 20 73 68 6f 72 74 | pasc|al short|
|00001e80| 20 47 65 74 46 69 6c 65 | 54 72 61 6e 73 6c 61 74 | GetFile|Translat|
|00001e90| 69 6f 6e 50 61 74 68 73 | 28 46 53 53 70 65 63 2a |ionPaths|(FSSpec*|
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001eb0| 20 20 20 20 20 73 72 63 | 44 6f 63 75 6d 65 6e 74 | src|Document|
|00001ec0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00001ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 46 69 6c | | Fil|
|00001ef0| 65 54 79 70 65 20 20 20 | 20 20 20 20 20 20 20 20 |eType | |
|00001f00| 20 20 20 20 20 20 20 20 | 20 64 73 74 44 6f 63 54 | | dstDocT|
|00001f10| 79 70 65 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ype,. | |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f40| 75 6e 73 69 67 6e 65 64 | 20 73 68 6f 72 74 20 20 |unsigned| short |
|00001f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 6d 61 78 52 | | maxR|
|00001f60| 65 73 75 6c 74 43 6e 74 | 2c 0d 20 20 20 20 20 20 |esultCnt|,. |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f90| 20 20 20 20 20 46 69 6c | 65 54 72 61 6e 73 6c 61 | Fil|eTransla|
|00001fa0| 74 69 6f 6e 53 70 65 63 | 41 72 72 61 79 50 74 72 |tionSpec|ArrayPtr|
|00001fb0| 20 72 65 73 75 6c 74 42 | 75 66 66 65 72 29 0d 42 | resultB|uffer).B|
|00001fc0| 6f 74 68 20 73 72 63 44 | 6f 63 75 6d 65 6e 74 20 |oth srcD|ocument |
|00001fd0| 61 6e 64 20 64 73 74 44 | 6f 63 54 79 70 65 20 61 |and dstD|ocType a|
|00001fe0| 72 65 20 6f 70 74 69 6f | 6e 61 6c 20 70 61 72 61 |re optio|nal para|
|00001ff0| 6d 65 74 65 72 73 2e 20 | 20 73 72 63 44 6f 63 75 |meters. | srcDocu|
|00002000| 6d 65 6e 74 20 69 73 20 | 74 68 65 20 73 6f 75 72 |ment is |the sour|
|00002010| 63 65 20 64 6f 63 75 6d | 65 6e 74 20 28 69 66 20 |ce docum|ent (if |
|00002020| 61 6e 79 29 20 61 6e 64 | 20 64 73 74 44 6f 63 54 |any) and| dstDocT|
|00002030| 79 70 65 20 69 73 20 74 | 68 65 20 64 65 73 69 72 |ype is t|he desir|
|00002040| 65 64 20 64 6f 63 75 6d | 65 6e 74 20 74 79 70 65 |ed docum|ent type|
|00002050| 20 74 6f 20 77 68 69 63 | 68 20 79 6f 75 20 77 6f | to whic|h you wo|
|00002060| 75 6c 64 20 6c 69 6b 65 | 20 73 72 63 44 6f 63 75 |uld like| srcDocu|
|00002070| 6d 65 6e 74 20 74 72 61 | 6e 73 6c 61 74 65 64 2e |ment tra|nslated.|
|00002080| 20 20 44 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 77 | Depend|ing on w|
|00002090| 68 61 74 20 69 73 20 70 | 61 73 73 65 64 2c 20 74 |hat is p|assed, t|
|000020a0| 68 65 20 72 6f 75 74 69 | 6e 65 20 72 65 74 75 72 |he routi|ne retur|
|000020b0| 6e 73 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 73 |ns a dif|ferent s|
|000020c0| 65 74 20 6f 66 20 74 72 | 61 6e 73 6c 61 74 69 6f |et of tr|anslatio|
|000020d0| 6e 20 70 61 74 68 73 2c | 20 61 73 20 73 65 65 6e |n paths,| as seen|
|000020e0| 20 69 6e 20 46 69 67 75 | 72 65 20 31 2e 0d 73 72 | in Figu|re 1..sr|
|000020f0| 63 44 6f 63 75 6d 65 6e | 74 09 64 73 74 44 6f 63 |cDocumen|t.dstDoc|
|00002100| 54 79 70 65 09 54 72 61 | 6e 73 6c 61 74 69 6f 6e |Type.Tra|nslation|
|00002110| 20 50 61 74 68 73 20 52 | 65 74 75 72 6e 65 64 09 | Paths R|eturned.|
|00002120| 0d 76 61 6c 69 64 09 76 | 61 6c 69 64 09 41 6c 6c |.valid.v|alid.All|
|00002130| 20 70 61 74 68 73 20 74 | 6f 20 74 72 61 6e 73 6c | paths t|o transl|
|00002140| 61 74 65 20 73 72 63 44 | 6f 63 75 6d 65 6e 74 20 |ate srcD|ocument |
|00002150| 74 6f 20 64 73 74 44 6f | 63 54 79 70 65 09 0d 4e |to dstDo|cType..N|
|00002160| 55 4c 4c 09 76 61 6c 69 | 64 09 41 6c 6c 20 70 61 |ULL.vali|d.All pa|
|00002170| 74 68 73 20 74 6f 20 74 | 72 61 6e 6c 73 61 74 65 |ths to t|ranlsate|
|00002180| 20 74 6f 20 64 73 74 44 | 6f 63 54 79 70 65 09 0d | to dstD|ocType..|
|00002190| 76 61 6c 69 64 09 30 09 | 41 6c 6c 20 70 61 74 68 |valid.0.|All path|
|000021a0| 73 20 66 72 6f 6d 20 73 | 72 63 44 6f 63 75 6d 65 |s from s|rcDocume|
|000021b0| 6e 74 09 0d 4e 55 4c 4c | 09 30 09 41 6c 6c 20 74 |nt..NULL|.0.All t|
|000021c0| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 70 61 74 68 73 |ranslati|on paths|
|000021d0| 09 0d 46 69 67 75 72 65 | 20 31 0d 54 68 65 20 70 |..Figure| 1.The p|
|000021e0| 61 72 61 6d 65 74 65 72 | 20 6d 61 78 52 65 73 75 |arameter| maxResu|
|000021f0| 6c 74 43 6e 74 20 69 73 | 20 74 68 65 20 6d 61 78 |ltCnt is| the max|
|00002200| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 6f 66 20 65 |imum num|ber of e|
|00002210| 6e 74 72 69 65 73 20 79 | 6f 75 72 20 72 65 73 75 |ntries y|our resu|
|00002220| 6c 74 42 75 66 66 65 72 | 20 63 61 6e 20 68 6f 6c |ltBuffer| can hol|
|00002230| 64 2e 0d 54 68 65 20 66 | 69 6e 61 6c 20 70 61 72 |d..The f|inal par|
|00002240| 61 6d 65 74 65 72 20 72 | 65 73 75 6c 74 42 75 66 |ameter r|esultBuf|
|00002250| 66 65 72 20 69 73 20 72 | 65 74 75 72 6e 65 64 20 |fer is r|eturned |
|00002260| 77 69 74 68 20 74 68 65 | 20 72 65 71 75 65 73 74 |with the| request|
|00002270| 65 64 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 69 |ed trans|lation i|
|00002280| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 20 20 54 68 69 |nformati|on. Thi|
|00002290| 73 20 62 75 66 66 65 72 | 27 73 20 74 79 70 65 20 |s buffer|'s type |
|000022a0| 69 73 20 64 65 66 69 6e | 65 64 20 61 73 3a 0d 20 |is defin|ed as:. |
|000022b0| 20 20 20 20 73 74 72 75 | 63 74 20 46 69 6c 65 54 | stru|ct FileT|
|000022c0| 72 61 6e 73 6c 61 74 69 | 6f 6e 53 70 65 63 20 7b |ranslati|onSpec {|
|000022d0| 0d 20 20 20 20 20 20 20 | 4f 53 54 79 70 65 20 20 |. |OSType |
|000022e0| 20 20 20 20 20 20 20 20 | 20 63 6f 6d 70 6f 6e 65 | | compone|
|000022f0| 6e 74 53 69 67 6e 61 74 | 75 72 65 3b 0d 09 63 6f |ntSignat|ure;..co|
|00002300| 6e 73 74 20 76 6f 69 64 | 2a 20 20 20 20 20 20 74 |nst void|* t|
|00002310| 72 61 6e 73 6c 61 74 69 | 6f 6e 53 79 73 74 65 6d |ranslati|onSystem|
|00002320| 49 6e 66 6f 3b 0d 09 46 | 69 6c 65 54 79 70 65 53 |Info;..F|ileTypeS|
|00002330| 70 65 63 20 20 20 20 20 | 73 72 63 3b 0d 09 46 69 |pec |src;..Fi|
|00002340| 6c 65 54 79 70 65 53 70 | 65 63 20 20 20 20 20 64 |leTypeSp|ec d|
|00002350| 73 74 3b 0d 20 20 20 20 | 20 20 20 7d 3b 0d 20 20 |st;. | };. |
|00002360| 20 20 20 74 79 70 65 64 | 65 66 20 73 74 72 75 63 | typed|ef struc|
|00002370| 74 20 46 69 6c 65 54 72 | 61 6e 73 6c 61 74 69 6f |t FileTr|anslatio|
|00002380| 6e 53 70 65 63 20 46 69 | 6c 65 54 72 61 6e 73 6c |nSpec Fi|leTransl|
|00002390| 61 74 69 6f 6e 53 70 65 | 63 3b 0d 20 20 20 20 20 |ationSpe|c;. |
|000023a0| 74 79 70 65 64 65 66 20 | 46 69 6c 65 54 72 61 6e |typedef |FileTran|
|000023b0| 73 6c 61 74 69 6f 6e 53 | 70 65 63 20 2a 46 69 6c |slationS|pec *Fil|
|000023c0| 65 54 72 61 6e 73 6c 61 | 74 69 6f 6e 53 70 65 63 |eTransla|tionSpec|
|000023d0| 41 72 72 61 79 50 74 72 | 3b 0d 54 68 65 20 66 75 |ArrayPtr|;.The fu|
|000023e0| 6e 63 74 69 6f 6e 20 72 | 65 74 75 72 6e 73 20 74 |nction r|eturns t|
|000023f0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 72 61 |he numbe|r of tra|
|00002400| 6e 73 6c 61 74 69 6f 6e | 20 70 61 74 68 73 2c 20 |nslation| paths, |
|00002410| 6f 72 20 61 20 72 65 73 | 75 6c 74 20 63 6f 64 65 |or a res|ult code|
|00002420| 20 69 66 20 74 68 65 20 | 76 61 6c 75 65 20 69 73 | if the |value is|
|00002430| 20 6e 65 67 61 74 69 76 | 65 2e 0d 54 68 65 20 66 | negativ|e..The f|
|00002440| 6f 6c 6c 6f 77 69 6e 67 | 20 65 78 61 6d 70 6c 65 |ollowing| example|
|00002450| 20 73 68 6f 77 73 20 61 | 20 68 6f 77 20 74 6f 20 | shows a| how to |
|00002460| 67 65 74 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |get the |list of |
|00002470| 74 72 61 6e 73 6c 61 74 | 69 6f 6e 20 70 61 74 68 |translat|ion path|
|00002480| 73 20 74 6f 20 6f 70 65 | 6e 20 61 20 73 70 65 63 |s to ope|n a spec|
|00002490| 69 66 69 63 20 64 6f 63 | 75 6d 65 6e 74 20 61 6e |ific doc|ument an|
|000024a0| 64 20 68 6f 77 20 74 6f | 20 74 72 61 6e 73 6c 61 |d how to| transla|
|000024b0| 74 65 20 75 73 69 6e 67 | 20 74 68 65 20 66 69 72 |te using| the fir|
|000024c0| 73 74 20 70 61 74 68 20 | 69 6e 20 74 68 65 20 6c |st path |in the l|
|000024d0| 69 73 74 2e 0d 20 0d 20 | 20 20 20 20 2f 2f 5f 5f |ist.. . | //__|
|000024e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000024f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002500| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002510| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002520| 5f 5f 5f 0d 20 20 20 20 | 20 2f 2f 0d 20 20 20 20 |___. | //. |
|00002530| 20 2f 2f 20 54 72 61 6e | 73 6c 61 74 65 55 73 69 | // Tran|slateUsi|
|00002540| 6e 67 46 69 72 73 74 50 | 61 74 68 0d 20 20 20 20 |ngFirstP|ath. |
|00002550| 20 2f 2f 0d 20 20 20 20 | 20 2f 2f 20 54 68 69 73 | //. | // This|
|00002560| 20 72 6f 75 74 69 6e 65 | 20 74 72 61 6e 73 6c 61 | routine| transla|
|00002570| 74 65 73 20 61 20 66 69 | 6c 65 20 74 6f 20 27 53 |tes a fi|le to 'S|
|00002580| 59 4c 4b 27 20 75 73 69 | 6e 67 20 74 68 65 20 66 |YLK' usi|ng the f|
|00002590| 69 72 73 74 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e |irst tra|nslation|
|000025a0| 20 70 61 74 68 0d 20 20 | 20 20 20 2f 2f 20 69 6e | path. | // in|
|000025b0| 20 74 68 65 20 54 72 61 | 6e 73 6c 61 74 69 6f 6e | the Tra|nslation|
|000025c0| 20 4d 61 6e 61 67 65 72 | 20 70 61 74 68 20 6c 69 | Manager| path li|
|000025d0| 73 74 2e 0d 20 20 20 20 | 20 2f 2f 0d 20 20 20 20 |st.. | //. |
|000025e0| 20 4f 53 45 72 72 20 54 | 72 61 6e 73 6c 61 74 65 | OSErr T|ranslate|
|000025f0| 28 46 53 53 70 65 63 2a | 20 74 61 72 67 65 74 44 |(FSSpec*| targetD|
|00002600| 6f 63 75 6d 65 6e 74 2c | 20 0d 20 20 20 20 20 20 |ocument,| . |
|00002610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 46 | | F|
|00002620| 53 53 70 65 63 2a 20 64 | 65 73 74 69 6e 61 74 69 |SSpec* d|estinati|
|00002630| 6f 6e 44 6f 63 75 6d 65 | 6e 74 2c 0d 20 20 20 20 |onDocume|nt,. |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002650| 20 46 53 53 70 65 63 2a | 20 74 68 65 41 70 70 6c | FSSpec*| theAppl|
|00002660| 69 63 61 74 69 6f 6e 29 | 0d 20 20 20 20 20 7b 0d |ication)|. {.|
|00002670| 20 20 20 20 20 46 69 6c | 65 54 72 61 6e 73 6c 61 | Fil|eTransla|
|00002680| 74 69 6f 6e 53 70 65 63 | 20 74 73 5b 31 30 5d 3b |tionSpec| ts[10];|
|00002690| 0d 20 20 20 20 20 4f 53 | 45 72 72 20 20 20 20 20 |. OS|Err |
|000026a0| 20 20 20 20 20 20 20 20 | 20 20 72 65 73 75 6c 74 | | result|
|000026b0| 3b 0d 20 20 20 20 20 73 | 68 6f 72 74 20 20 20 20 |;. s|hort |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 6e 75 6d 62 65 | | numbe|
|000026d0| 72 50 61 74 68 73 3b 0d | 20 20 20 20 20 2f 2f 20 |rPaths;.| // |
|000026e0| 54 72 79 20 74 6f 20 67 | 65 74 20 74 68 65 20 74 |Try to g|et the t|
|000026f0| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 70 61 74 68 0d |ranslati|on path.|
|00002700| 20 20 20 20 20 6e 75 6d | 62 65 72 50 61 74 68 73 | num|berPaths|
|00002710| 20 3d 20 20 47 65 74 46 | 69 6c 65 54 72 61 6e 73 | = GetF|ileTrans|
|00002720| 6c 61 74 69 6f 6e 50 61 | 74 68 73 28 74 61 72 67 |lationPa|ths(targ|
|00002730| 65 74 44 6f 63 75 6d 65 | 6e 74 2c 20 0d 20 20 20 |etDocume|nt, . |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002760| 20 20 20 20 20 20 20 20 | 20 27 53 59 4c 4b 27 2c | | 'SYLK',|
|00002770| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 30 2c | | 10,|
|000027a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000027b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 74 73 | | &ts|
|000027d0| 5b 30 5d 29 3b 0d 20 20 | 20 20 20 69 66 20 28 6e |[0]);. | if (n|
|000027e0| 75 6d 62 65 72 50 61 74 | 68 73 20 3e 20 30 29 0d |umberPat|hs > 0).|
|000027f0| 20 20 20 20 20 20 20 7b | 0d 20 20 20 20 20 20 20 | {|. |
|00002800| 72 65 73 75 6c 74 20 3d | 20 54 72 61 6e 73 6c 61 |result =| Transla|
|00002810| 74 65 46 69 6c 65 28 74 | 61 72 67 65 74 44 6f 63 |teFile(t|argetDoc|
|00002820| 75 6d 65 6e 74 2c 20 64 | 65 73 74 69 6e 61 74 69 |ument, d|estinati|
|00002830| 6f 6e 44 6f 63 75 6d 65 | 6e 74 2c 20 74 73 29 3b |onDocume|nt, ts);|
|00002840| 20 20 20 20 0d 20 20 20 | 20 20 20 20 7d 0d 20 20 | . | }. |
|00002850| 20 20 20 65 6c 73 65 0d | 20 20 20 20 20 20 20 72 | else.| r|
|00002860| 65 73 75 6c 74 20 3d 20 | 6e 6f 54 79 70 65 45 72 |esult = |noTypeEr|
|00002870| 72 3b 0d 20 20 20 20 20 | 0d 20 20 20 20 20 72 65 |r;. |. re|
|00002880| 74 75 72 6e 20 72 65 73 | 75 6c 74 3b 0d 20 20 20 |turn res|ult;. |
|00002890| 20 20 7d 0d 47 65 74 74 | 69 6e 67 20 4b 69 6e 64 | }.Gett|ing Kind|
|000028a0| 20 53 74 72 69 6e 67 73 | 0d 4b 69 6e 64 20 73 74 | Strings|.Kind st|
|000028b0| 72 69 6e 67 73 20 64 65 | 73 63 72 69 62 65 20 64 |rings de|scribe d|
|000028c0| 6f 63 75 6d 65 6e 74 73 | 3b 20 66 6f 72 20 69 6e |ocuments|; for in|
|000028d0| 73 74 61 6e 63 65 20 22 | 46 72 65 65 48 61 6e 64 |stance "|FreeHand|
|000028e0| 20 67 72 61 70 68 69 63 | 22 2e 20 20 50 72 65 76 | graphic|". Prev|
|000028f0| 69 6f 75 73 6c 79 20 74 | 68 65 20 6b 69 6e 64 20 |iously t|he kind |
|00002900| 73 74 72 69 6e 67 73 20 | 77 65 72 65 20 64 69 73 |strings |were dis|
|00002910| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 20 46 69 |played i|n the Fi|
|00002920| 6e 64 65 72 2c 20 62 75 | 74 20 74 68 65 72 65 20 |nder, bu|t there |
|00002930| 77 61 73 20 6e 6f 20 70 | 72 6f 67 72 61 6d 6d 61 |was no p|rogramma|
|00002940| 74 69 63 20 77 61 79 20 | 6f 66 20 61 63 63 65 73 |tic way |of acces|
|00002950| 73 69 6e 67 20 74 68 65 | 6d 2e 20 20 54 68 65 20 |sing the|m. The |
|00002960| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 4d 61 6e 61 |Translat|ion Mana|
|00002970| 67 65 72 20 6e 6f 77 20 | 70 72 6f 76 69 64 65 73 |ger now |provides|
|00002980| 20 74 68 65 20 6d 65 61 | 6e 73 20 74 6f 20 67 65 | the mea|ns to ge|
|00002990| 74 20 74 6f 20 74 68 65 | 20 6b 69 6e 64 20 73 74 |t to the| kind st|
|000029a0| 72 69 6e 67 73 2c 20 61 | 73 20 77 65 6c 6c 20 61 |rings, a|s well a|
|000029b0| 73 20 74 68 65 20 6e 61 | 6d 65 73 20 6f 66 20 74 |s the na|mes of t|
|000029c0| 68 65 20 54 72 61 6e 73 | 6c 61 74 69 6f 6e 20 45 |he Trans|lation E|
|000029d0| 78 74 65 6e 73 69 6f 6e | 73 20 69 6e 73 74 61 6c |xtension|s instal|
|000029e0| 6c 65 64 2e 0d 54 68 65 | 20 72 6f 75 74 69 6e 65 |led..The| routine|
|000029f0| 20 74 6f 20 67 65 74 20 | 61 20 6b 69 6e 64 20 73 | to get |a kind s|
|00002a00| 74 72 69 6e 67 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 |tring lo|oks like|
|00002a10| 3a 0d 20 20 20 20 20 4f | 53 45 72 72 20 47 65 74 |:. O|SErr Get|
|00002a20| 44 6f 63 75 6d 65 6e 74 | 4b 69 6e 64 53 74 72 69 |Document|KindStri|
|00002a30| 6e 67 28 73 68 6f 72 74 | 20 20 64 6f 63 56 52 65 |ng(short| docVRe|
|00002a40| 66 4e 75 6d 2c 20 0d 20 | 20 20 20 20 20 20 20 20 |fNum, . | |
|00002a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a60| 20 20 20 20 20 20 20 20 | 4f 53 54 79 70 65 20 64 | |OSType d|
|00002a70| 6f 63 54 79 70 65 2c 20 | 0d 20 20 20 20 20 20 20 |ocType, |. |
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a90| 20 20 20 20 20 20 20 20 | 20 20 4f 53 54 79 70 65 | | OSType|
|00002aa0| 20 64 6f 63 43 72 65 61 | 74 6f 72 2c 20 0d 20 20 | docCrea|tor, . |
|00002ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|00002ad0| 74 72 36 33 20 20 6b 69 | 6e 64 53 74 72 69 6e 67 |tr63 ki|ndString|
|00002ae0| 29 0d 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 74 |).This r|outine t|
|00002af0| 61 6b 65 73 20 69 6e 20 | 74 68 65 20 64 6f 63 56 |akes in |the docV|
|00002b00| 52 65 66 4e 75 6d 20 70 | 61 72 61 6d 65 74 65 72 |RefNum p|arameter|
|00002b10| 2c 20 74 68 65 20 76 6f | 6c 75 6d 65 20 63 6f 6e |, the vo|lume con|
|00002b20| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 64 6f 63 75 |taining |the docu|
|00002b30| 6d 65 6e 74 2e 20 20 54 | 68 69 73 20 69 73 20 61 |ment. T|his is a|
|00002b40| 20 68 69 6e 74 20 74 6f | 20 74 68 65 20 54 72 61 | hint to| the Tra|
|00002b50| 6e 73 6c 61 74 69 6f 6e | 20 4d 61 6e 61 67 65 72 |nslation| Manager|
|00002b60| 20 77 68 65 72 65 20 74 | 6f 20 6c 6f 6f 6b 20 66 | where t|o look f|
|00002b70| 6f 72 20 74 68 65 20 6b | 69 6e 64 20 73 74 72 69 |or the k|ind stri|
|00002b80| 6e 67 2e 20 20 49 66 20 | 69 74 20 64 6f 65 73 6e |ng. If |it doesn|
|00002b90| d5 74 20 66 69 6e 64 20 | 74 68 65 20 73 74 72 69 |.t find |the stri|
|00002ba0| 6e 67 20 6f 6e 20 74 68 | 61 74 20 76 6f 6c 75 6d |ng on th|at volum|
|00002bb0| 65 2c 20 69 74 20 77 69 | 6c 6c 20 75 73 65 20 61 |e, it wi|ll use a|
|00002bc0| 6e 20 69 6e 74 65 72 6e | 61 6c 20 73 65 61 72 63 |n intern|al searc|
|00002bd0| 68 20 70 61 74 68 20 74 | 6f 20 6c 6f 6f 6b 20 6f |h path t|o look o|
|00002be0| 6e 20 6f 74 68 65 72 20 | 76 6f 6c 75 6d 65 73 20 |n other |volumes |
|00002bf0| 66 6f 72 20 74 68 65 20 | 73 74 72 69 6e 67 2e 20 |for the |string. |
|00002c00| 20 49 6e 20 64 6f 63 54 | 79 70 65 20 61 6e 64 20 | In docT|ype and |
|00002c10| 64 6f 63 43 72 65 61 74 | 6f 72 20 79 6f 75 20 70 |docCreat|or you p|
|00002c20| 61 73 73 20 74 68 65 20 | 74 79 70 65 20 61 6e 64 |ass the |type and|
|00002c30| 20 63 72 65 61 74 6f 72 | 20 6f 66 20 74 68 65 20 | creator| of the |
|00002c40| 64 6f 63 75 6d 65 6e 74 | 20 79 6f 75 20 77 61 6e |document| you wan|
|00002c50| 74 20 74 6f 20 71 75 65 | 72 79 2e 20 20 57 68 65 |t to que|ry. Whe|
|00002c60| 6e 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 72 |n the fu|nction r|
|00002c70| 65 74 75 72 6e 73 2c 20 | 6b 69 6e 64 53 74 72 69 |eturns, |kindStri|
|00002c80| 6e 67 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |ng conta|ins the |
|00002c90| 6b 69 6e 64 20 73 74 72 | 69 6e 67 20 74 6f 20 64 |kind str|ing to d|
|00002ca0| 69 73 70 6c 61 79 20 66 | 6f 72 20 74 68 61 74 20 |isplay f|or that |
|00002cb0| 73 70 65 63 69 66 69 63 | 20 64 6f 63 75 6d 65 6e |specific| documen|
|00002cc0| 74 2e 0d 49 66 20 79 6f | 75 20 68 61 76 65 20 61 |t..If yo|u have a|
|00002cd0| 20 46 69 6c 65 54 72 61 | 6e 73 6c 61 74 69 6f 6e | FileTra|nslation|
|00002ce0| 53 70 65 63 20 61 6e 64 | 20 79 6f 75 20 77 61 6e |Spec and| you wan|
|00002cf0| 74 20 74 6f 20 66 69 6e | 64 20 6f 75 74 20 74 68 |t to fin|d out th|
|00002d00| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 54 72 |e name o|f the Tr|
|00002d10| 61 6e 73 6c 61 74 69 6f | 6e 20 45 78 74 65 6e 73 |anslatio|n Extens|
|00002d20| 69 6f 6e 20 74 68 61 74 | 27 73 20 70 65 72 66 6f |ion that|'s perfo|
|00002d30| 72 6d 69 6e 67 20 74 68 | 65 20 74 72 61 6e 73 6c |rming th|e transl|
|00002d40| 61 74 69 6f 6e 2c 20 79 | 6f 75 20 63 61 6c 6c 3a |ation, y|ou call:|
|00002d50| 0d 20 20 20 20 20 70 61 | 73 63 61 6c 20 4f 53 45 |. pa|scal OSE|
|00002d60| 72 72 20 47 65 74 54 72 | 61 6e 73 6c 61 74 69 6f |rr GetTr|anslatio|
|00002d70| 6e 45 78 74 65 6e 73 69 | 6f 6e 4e 61 6d 65 28 0d |nExtensi|onName(.|
|00002d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002da0| 20 20 20 20 20 20 20 63 | 6f 6e 73 74 20 46 69 6c | c|onst Fil|
|00002db0| 65 54 72 61 6e 73 6c 61 | 74 69 6f 6e 53 70 65 63 |eTransla|tionSpec|
|00002dc0| 2a 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 4d 65 74 |* transl|ationMet|
|00002dd0| 68 6f 64 2c 20 0d 20 20 | 20 20 20 20 20 20 20 20 |hod, . | |
|00002de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 53 74 72 | | Str|
|00002e00| 33 31 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |31 | |
|00002e10| 20 20 20 20 20 20 20 20 | 65 78 74 65 6e 73 69 6f | |extensio|
|00002e20| 6e 4e 61 6d 65 29 0d 54 | 68 69 73 20 72 6f 75 74 |nName).T|his rout|
|00002e30| 69 6e 65 20 74 61 6b 65 | 73 20 61 20 46 69 6c 65 |ine take|s a File|
|00002e40| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 53 70 65 63 20 |Translat|ionSpec |
|00002e50| 28 72 65 74 75 72 6e 65 | 64 20 66 72 6f 6d 20 43 |(returne|d from C|
|00002e60| 61 6e 44 6f 63 42 65 4f | 70 65 6e 65 64 28 29 20 |anDocBeO|pened() |
|00002e70| 6f 72 20 47 65 74 46 69 | 6c 65 54 72 61 6e 73 6c |or GetFi|leTransl|
|00002e80| 61 74 69 6f 6e 50 61 74 | 68 73 28 29 29 20 61 6e |ationPat|hs()) an|
|00002e90| 64 20 72 65 74 75 72 6e | 73 2c 20 69 6e 20 65 78 |d return|s, in ex|
|00002ea0| 74 65 6e 73 69 6f 6e 4e | 61 6d 65 2c 20 74 68 65 |tensionN|ame, the|
|00002eb0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 54 72 61 | name of| the Tra|
|00002ec0| 6e 73 6c 61 74 69 6f 6e | 20 45 78 74 65 6e 73 69 |nslation| Extensi|
|00002ed0| 6f 6e 20 70 65 72 66 6f | 72 6d 69 6e 67 20 74 68 |on perfo|rming th|
|00002ee0| 65 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 2e 0d 42 |e transl|ation..B|
|00002ef0| 6f 74 68 20 6f 66 20 74 | 68 65 73 65 20 72 6f 75 |oth of t|hese rou|
|00002f00| 74 69 6e 65 73 20 63 61 | 6e 20 62 65 20 75 73 65 |tines ca|n be use|
|00002f10| 64 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 20 77 |d, for e|xample w|
|00002f20| 68 65 6e 20 75 73 69 6e | 67 20 47 65 74 46 69 6c |hen usin|g GetFil|
|00002f30| 65 54 72 61 6e 73 6c 61 | 74 69 6f 6e 50 61 74 68 |eTransla|tionPath|
|00002f40| 73 28 29 20 74 6f 20 63 | 72 65 61 74 65 20 79 6f |s() to c|reate yo|
|00002f50| 75 72 20 6f 77 6e 20 54 | 72 61 6e 73 6c 61 74 69 |ur own T|ranslati|
|00002f60| 6f 6e 20 44 69 61 6c 6f | 67 20 62 6f 78 2e 20 20 |on Dialo|g box. |
|00002f70| 55 73 69 6e 67 20 74 68 | 65 73 65 20 77 69 6c 6c |Using th|ese will|
|00002f80| 20 61 6c 6c 6f 77 20 79 | 6f 75 20 74 6f 20 67 65 | allow y|ou to ge|
|00002f90| 6e 65 72 61 74 65 20 73 | 74 72 69 6e 67 73 20 6c |nerate s|trings l|
|00002fa0| 69 6b 65 20 22 4d 61 63 | 57 72 69 74 65 20 49 49 |ike "Mac|Write II|
|00002fb0| 20 64 6f 63 75 6d 65 6e | 74 20 77 69 74 68 20 58 | documen|t with X|
|00002fc0| 59 5a 5a 59 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e |YZZY tra|nslation|
|00002fd0| 22 20 61 6e 64 20 73 6f | 20 66 6f 72 74 68 2e 0d |" and so| forth..|
|00002fe0| 53 63 72 61 70 20 54 72 | 61 6e 73 6c 61 74 69 6f |Scrap Tr|anslatio|
|00002ff0| 6e 0d 41 6e 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |n.An add|itional |
|00003000| 72 6f 75 74 69 6e 65 20 | 68 61 73 20 62 65 65 6e |routine |has been|
|00003010| 20 6d 61 64 65 20 70 75 | 62 6c 69 63 20 69 6e 20 | made pu|blic in |
|00003020| 74 68 65 20 54 72 61 6e | 73 6c 61 74 69 6f 6e 20 |the Tran|slation |
|00003030| 4d 61 6e 61 67 65 72 20 | 61 6c 6c 6f 77 69 6e 67 |Manager |allowing|
|00003040| 20 79 6f 75 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 | you to |perform |
|00003050| 53 63 72 61 70 20 74 72 | 61 6e 73 6c 61 74 69 6f |Scrap tr|anslatio|
|00003060| 6e 2e 20 20 54 68 65 20 | 6e 61 6d 65 20 73 63 72 |n. The |name scr|
|00003070| 61 70 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 69 |ap trans|lation i|
|00003080| 73 20 73 6f 6d 65 77 68 | 61 74 20 6d 69 73 6c 65 |s somewh|at misle|
|00003090| 61 64 69 6e 67 3b 20 72 | 61 74 68 65 72 20 69 74 |ading; r|ather it|
|000030a0| d5 73 20 69 6e 2d 6d 65 | 6d 6f 72 79 20 74 72 61 |.s in-me|mory tra|
|000030b0| 6e 73 6c 61 74 69 6f 6e | 2e 20 20 53 63 72 61 70 |nslation|. Scrap|
|000030c0| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 69 73 20 | transla|tion is |
|000030d0| 75 73 65 64 20 62 79 20 | 74 68 65 20 53 63 72 61 |used by |the Scra|
|000030e0| 70 20 4d 61 6e 61 67 65 | 72 2c 20 45 64 69 74 69 |p Manage|r, Editi|
|000030f0| 6f 6e 20 4d 61 6e 61 67 | 65 72 2c 20 44 72 61 67 |on Manag|er, Drag|
|00003100| 20 4d 61 6e 61 67 65 72 | 2c 20 61 6e 64 20 4f 70 | Manager|, and Op|
|00003110| 65 6e 44 6f 63 20 74 6f | 20 6e 61 6d 65 20 61 20 |enDoc to| name a |
|00003120| 66 65 77 20 63 6c 69 65 | 6e 74 73 20 66 6f 72 20 |few clie|nts for |
|00003130| 69 6e 2d 6d 65 6d 6f 72 | 79 20 74 72 61 6e 73 6c |in-memor|y transl|
|00003140| 61 74 69 6f 6e 2e 20 20 | 53 63 72 61 70 20 74 72 |ation. |Scrap tr|
|00003150| 61 6e 73 6c 61 74 69 6f | 6e 20 63 61 6e 20 62 65 |anslatio|n can be|
|00003160| 20 75 73 65 64 20 61 6e | 79 20 74 69 6d 65 20 79 | used an|y time y|
|00003170| 6f 75 20 77 61 6e 74 20 | 74 6f 20 74 72 61 6e 73 |ou want |to trans|
|00003180| 6c 61 74 65 20 61 20 62 | 75 66 66 65 72 20 6f 66 |late a b|uffer of|
|00003190| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 0d 54 68 | informa|tion..Th|
|000031a0| 65 20 72 6f 75 74 69 6e | 65 20 74 6f 20 63 61 6c |e routin|e to cal|
|000031b0| 6c 20 77 68 65 6e 20 79 | 6f 75 20 77 61 6e 74 20 |l when y|ou want |
|000031c0| 74 6f 20 70 65 72 66 6f | 72 6d 20 73 63 72 61 70 |to perfo|rm scrap|
|000031d0| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 69 73 3a | transla|tion is:|
|000031e0| 0d 20 20 20 20 20 20 70 | 61 73 63 61 6c 20 4f 53 |. p|ascal OS|
|000031f0| 45 72 72 20 54 72 61 6e | 73 6c 61 74 65 53 63 72 |Err Tran|slateScr|
|00003200| 61 70 28 47 65 74 53 63 | 72 61 70 44 61 74 61 50 |ap(GetSc|rapDataP|
|00003210| 72 6f 63 50 74 72 20 73 | 6f 75 72 63 65 44 61 74 |rocPtr s|ourceDat|
|00003220| 61 47 65 74 74 65 72 2c | 0d 20 20 20 20 20 20 20 |aGetter,|. |
|00003230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003240| 20 20 20 20 20 20 20 20 | 20 20 20 76 6f 69 64 2a | | void*|
|00003250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|00003260| 6f 75 72 63 65 44 61 74 | 61 47 65 74 74 65 72 52 |ourceDat|aGetterR|
|00003270| 65 66 43 6f 6e 2c 0d 20 | 20 20 20 20 20 20 20 20 |efCon,. | |
|00003280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003290| 20 20 20 20 20 20 20 20 | 20 53 63 72 61 70 54 79 | | ScrapTy|
|000032a0| 70 65 20 20 20 20 20 20 | 20 20 20 20 20 64 65 73 |pe | des|
|000032b0| 74 69 6e 61 74 69 6f 6e | 46 6f 72 6d 61 74 2c 0d |tination|Format,.|
|000032c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032e0| 20 20 48 61 6e 64 6c 65 | 20 20 20 20 20 20 20 20 | Handle| |
|000032f0| 20 20 20 20 20 20 64 65 | 73 74 69 6e 61 74 69 6f | de|stinatio|
|00003300| 6e 44 61 74 61 2c 0d 20 | 20 20 20 20 20 20 20 20 |nData,. | |
|00003310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003320| 20 20 20 20 20 20 20 20 | 20 73 68 6f 72 74 20 20 | | short |
|00003330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 6f | | pro|
|00003340| 67 72 65 73 73 44 69 61 | 6c 6f 67 49 44 29 0d 54 |gressDia|logID).T|
|00003350| 68 65 20 72 6f 75 74 69 | 6e 65 20 69 73 20 64 65 |he routi|ne is de|
|00003360| 73 69 67 6e 65 64 20 69 | 6e 20 61 20 77 61 79 20 |signed i|n a way |
|00003370| 74 6f 20 75 73 65 20 61 | 20 63 61 6c 6c 62 61 63 |to use a| callbac|
|00003380| 6b 20 79 6f 75 20 70 72 | 6f 76 69 64 65 20 74 6f |k you pr|ovide to|
|00003390| 20 67 65 74 20 74 68 65 | 20 73 6f 75 72 63 65 20 | get the| source |
|000033a0| 64 61 74 61 20 74 6f 20 | 74 72 61 6e 73 6c 61 74 |data to |translat|
|000033b0| 65 2e 20 20 54 68 61 74 | 20 69 6e 66 6f 72 6d 61 |e. That| informa|
|000033c0| 74 69 6f 6e 20 69 73 20 | 74 68 65 6e 20 74 72 61 |tion is |then tra|
|000033d0| 6e 73 6c 61 74 65 64 20 | 61 6e 64 20 70 6c 61 63 |nslated |and plac|
|000033e0| 65 64 20 69 6e 74 6f 20 | 61 20 64 65 73 74 69 6e |ed into |a destin|
|000033f0| 61 74 69 6f 6e 20 68 61 | 6e 64 6c 65 2e 0d 54 68 |ation ha|ndle..Th|
|00003400| 65 20 70 61 72 61 6d 65 | 74 65 72 20 73 6f 75 72 |e parame|ter sour|
|00003410| 63 65 44 61 74 61 47 65 | 74 74 65 72 20 61 6e 64 |ceDataGe|tter and|
|00003420| 20 73 6f 75 72 63 65 44 | 61 74 61 47 65 74 74 65 | sourceD|ataGette|
|00003430| 72 52 65 66 43 6f 6e 20 | 61 72 65 20 74 68 65 20 |rRefCon |are the |
|00003440| 74 77 6f 20 70 61 72 61 | 6d 65 74 65 72 73 20 64 |two para|meters d|
|00003450| 65 61 6c 69 6e 67 20 77 | 69 74 68 20 79 6f 75 72 |ealing w|ith your|
|00003460| 20 63 61 6c 6c 62 61 63 | 6b 20 72 6f 75 74 69 6e | callbac|k routin|
|00003470| 65 2e 20 20 73 6f 75 72 | 63 65 44 61 74 61 47 65 |e. sour|ceDataGe|
|00003480| 74 74 65 72 52 65 66 43 | 6f 6e 20 69 73 20 66 6f |tterRefC|on is fo|
|00003490| 72 20 79 6f 75 72 20 6f | 77 6e 20 75 73 65 20 2d |r your o|wn use -|
|000034a0| 20 61 6c 6c 6f 77 69 6e | 67 20 79 6f 75 20 74 6f | allowin|g you to|
|000034b0| 20 70 61 73 73 20 69 6e | 66 6f 72 6d 61 74 69 6f | pass in|formatio|
|000034c0| 6e 20 74 6f 20 79 6f 75 | 72 20 63 61 6c 6c 62 61 |n to you|r callba|
|000034d0| 63 6b 2e 20 20 54 68 65 | 20 70 61 72 61 6d 65 74 |ck. The| paramet|
|000034e0| 65 72 20 73 6f 75 63 65 | 44 61 74 61 47 65 74 74 |er souce|DataGett|
|000034f0| 65 72 20 69 73 20 64 65 | 66 69 6e 65 64 20 61 73 |er is de|fined as|
|00003500| 3a 0d 20 20 20 20 20 20 | 74 79 70 65 64 65 66 20 |:. |typedef |
|00003510| 70 61 73 63 61 6c 20 4f | 53 45 72 72 20 28 2a 47 |pascal O|SErr (*G|
|00003520| 65 74 53 63 72 61 70 44 | 61 74 61 50 72 6f 63 50 |etScrapD|ataProcP|
|00003530| 74 72 29 28 53 63 72 61 | 70 54 79 70 65 20 72 65 |tr)(Scra|pType re|
|00003540| 71 75 65 73 74 65 64 46 | 6f 72 6d 61 74 2c 0d 20 |questedF|ormat,. |
|00003550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003580| 20 48 61 6e 64 6c 65 20 | 20 20 20 64 61 74 61 48 | Handle | dataH|
|00003590| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|000035a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035c0| 20 20 20 20 76 6f 69 64 | 2a 20 20 20 20 20 73 72 | void|* sr|
|000035d0| 63 44 61 74 61 47 65 74 | 74 65 72 52 65 66 43 6f |cDataGet|terRefCo|
|000035e0| 6e 29 3b 0d 54 68 65 20 | 63 61 6c 6c 62 61 63 6b |n);.The |callback|
|000035f0| 20 72 6f 75 74 69 6e 65 | 20 68 61 73 20 74 77 6f | routine| has two|
|00003600| 20 72 65 73 70 6f 6e 73 | 69 62 69 6c 69 74 69 65 | respons|ibilitie|
|00003610| 73 2e 20 20 54 68 65 20 | 66 69 72 73 74 20 69 73 |s. The |first is|
|00003620| 20 74 6f 20 74 65 6c 6c | 20 74 68 65 20 63 61 6c | to tell| the cal|
|00003630| 6c 65 72 20 77 68 61 74 | 20 73 6f 75 72 63 65 20 |ler what| source |
|00003640| 74 79 70 65 73 20 61 72 | 65 20 61 76 61 69 6c 61 |types ar|e availa|
|00003650| 62 6c 65 20 66 6f 72 20 | 74 72 61 6e 73 6c 61 74 |ble for |translat|
|00003660| 69 6e 67 20 28 69 66 20 | 79 6f 75 20 61 72 65 20 |ing (if |you are |
|00003670| 74 68 65 20 53 63 72 61 | 70 20 4d 61 6e 61 67 65 |the Scra|p Manage|
|00003680| 72 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 20 79 6f |r for ex|ample yo|
|00003690| 75 20 77 6f 75 6c 64 20 | 70 61 73 73 20 61 6c 6c |u would |pass all|
|000036a0| 20 74 68 65 20 64 69 66 | 66 65 72 65 6e 74 20 66 | the dif|ferent f|
|000036b0| 6f 72 6d 61 74 73 20 61 | 6c 72 65 61 64 79 20 6f |ormats a|lready o|
|000036c0| 6e 20 74 68 65 20 64 65 | 73 6b 20 73 63 72 61 70 |n the de|sk scrap|
|000036d0| 29 2e 20 20 54 68 65 20 | 6f 74 68 65 72 20 72 65 |). The |other re|
|000036e0| 73 70 6f 6e 73 69 62 69 | 6c 69 74 79 20 69 73 20 |sponsibi|lity is |
|000036f0| 74 6f 20 61 63 74 75 61 | 6c 6c 79 20 70 72 6f 76 |to actua|lly prov|
|00003700| 69 64 65 20 74 68 65 20 | 64 61 74 61 20 72 65 71 |ide the |data req|
|00003710| 75 65 73 74 65 64 2e 0d | 46 6f 72 20 74 68 65 20 |uested..|For the |
|00003720| 66 69 72 73 74 20 63 61 | 73 65 2c 20 69 66 20 74 |first ca|se, if t|
|00003730| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 72 65 71 |he param|eter req|
|00003740| 75 65 73 74 65 64 46 6f | 72 6d 61 74 20 69 73 20 |uestedFo|rmat is |
|00003750| 27 66 6d 74 73 27 2c 20 | 74 68 65 6e 20 69 74 27 |'fmts', |then it'|
|00003760| 73 20 74 68 65 20 72 65 | 73 70 6f 6e 73 69 62 69 |s the re|sponsibi|
|00003770| 6c 69 74 79 20 6f 66 20 | 74 68 65 20 63 61 6c 6c |lity of |the call|
|00003780| 62 61 63 6b 20 72 6f 75 | 74 69 6e 65 20 74 6f 20 |back rou|tine to |
|00003790| 72 65 74 75 72 6e 20 69 | 6e 20 64 61 74 61 48 20 |return i|n dataH |
|000037a0| 61 20 6c 69 73 74 20 6f | 66 20 70 61 69 72 73 20 |a list o|f pairs |
|000037b0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 53 |containi|ng the S|
|000037c0| 63 72 61 70 54 79 70 65 | 20 61 6e 64 20 74 68 65 |crapType| and the|
|000037d0| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 74 68 61 | size of| the tha|
|000037e0| 74 20 53 63 72 61 70 54 | 79 70 65 d5 73 20 64 61 |t ScrapT|ype.s da|
|000037f0| 74 61 2e 20 20 54 68 65 | 20 68 61 6e 64 6c 65 20 |ta. The| handle |
|00003800| 73 68 6f 75 6c 64 20 62 | 65 20 72 65 2d 73 69 7a |should b|e re-siz|
|00003810| 65 64 20 61 63 63 6f 72 | 64 69 6e 67 6c 79 2e 0d |ed accor|dingly..|
|00003820| 46 6f 72 20 74 68 65 20 | 73 65 63 6f 6e 64 20 63 |For the |second c|
|00003830| 61 73 65 2c 20 74 68 65 | 20 54 72 61 6e 73 6c 61 |ase, the| Transla|
|00003840| 74 69 6f 6e 20 4d 61 6e | 61 67 65 72 20 77 69 6c |tion Man|ager wil|
|00003850| 6c 20 63 61 6c 6c 20 74 | 68 65 20 63 61 6c 6c 62 |l call t|he callb|
|00003860| 61 63 6b 20 72 6f 75 74 | 69 6e 65 20 77 69 74 68 |ack rout|ine with|
|00003870| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 74 79 70 65 | one of |the type|
|00003880| 73 20 69 74 20 68 61 64 | 20 70 72 6f 76 69 64 65 |s it had| provide|
|00003890| 64 20 65 61 72 6c 69 65 | 72 20 69 6e 20 72 65 73 |d earlie|r in res|
|000038a0| 70 6f 6e 73 65 20 74 6f | 20 27 66 6d 74 73 27 2e |ponse to| 'fmts'.|
|000038b0| 20 20 54 68 65 20 63 61 | 6c 6c 62 61 63 6b 20 69 | The ca|llback i|
|000038c0| 6e 20 74 68 61 74 20 63 | 61 73 65 20 69 73 20 72 |n that c|ase is r|
|000038d0| 65 73 70 6f 6e 73 69 62 | 6c 65 20 66 6f 72 20 72 |esponsib|le for r|
|000038e0| 65 2d 73 69 7a 69 6e 67 | 20 74 68 65 20 64 61 74 |e-sizing| the dat|
|000038f0| 61 48 20 61 6e 64 20 70 | 6c 61 63 69 6e 67 20 69 |aH and p|lacing i|
|00003900| 6e 20 69 74 20 74 68 65 | 20 64 61 74 61 20 6f 66 |n it the| data of|
|00003910| 20 74 79 70 65 20 72 65 | 71 75 73 74 65 64 46 6f | type re|qustedFo|
|00003920| 72 6d 61 74 2e 0d 49 6e | 20 74 68 65 20 63 61 6c |rmat..In| the cal|
|00003930| 6c 62 61 63 6b 2c 20 74 | 68 65 20 70 61 72 61 6d |lback, t|he param|
|00003940| 65 74 65 72 20 73 6f 75 | 72 63 65 44 61 74 61 52 |eter sou|rceDataR|
|00003950| 65 66 43 6f 6e 20 69 73 | 20 74 68 65 20 73 61 6d |efCon is| the sam|
|00003960| 65 20 61 73 20 77 68 61 | 74 20 79 6f 75 20 68 61 |e as wha|t you ha|
|00003970| 64 20 70 61 73 73 65 64 | 20 69 6e 20 74 68 65 20 |d passed| in the |
|00003980| 73 6f 75 72 63 65 44 61 | 74 61 47 65 74 74 65 72 |sourceDa|taGetter|
|00003990| 52 65 66 43 6f 6e 20 66 | 69 65 6c 64 20 69 6e 20 |RefCon f|ield in |
|000039a0| 54 72 61 6e 73 6c 61 74 | 65 53 63 72 61 70 28 29 |Translat|eScrap()|
|000039b0| 2e 0d 42 61 63 6b 20 69 | 6e 20 54 72 61 6e 73 6c |..Back i|n Transl|
|000039c0| 61 74 65 53 63 72 61 70 | 28 29 2c 20 74 68 65 20 |ateScrap|(), the |
|000039d0| 74 68 69 72 64 20 70 61 | 72 61 6d 65 74 65 72 2c |third pa|rameter,|
|000039e0| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 46 6f 72 6d | destina|tionForm|
|000039f0| 61 74 20 69 73 20 74 68 | 65 20 64 65 73 69 72 65 |at is th|e desire|
|00003a00| 64 20 66 6f 72 6d 61 74 | 20 79 6f 75 20 77 6f 75 |d format| you wou|
|00003a10| 6c 64 20 6c 69 6b 65 20 | 74 68 65 20 69 6e 66 6f |ld like |the info|
|00003a20| 72 6d 61 74 69 6f 6e 20 | 74 72 61 6e 73 6c 61 74 |rmation |translat|
|00003a30| 65 64 20 69 6e 74 6f 2e | 20 20 64 65 73 74 69 6e |ed into.| destin|
|00003a40| 61 74 69 6f 6e 44 61 74 | 61 20 69 73 20 61 20 68 |ationDat|a is a h|
|00003a50| 61 6e 64 6c 65 20 79 6f | 75 20 70 72 6f 76 69 64 |andle yo|u provid|
|00003a60| 65 2e 20 20 54 68 65 20 | 54 72 61 6e 73 6c 61 74 |e. The |Translat|
|00003a70| 69 6f 6e 20 45 78 74 65 | 6e 73 69 6f 6e 20 77 69 |ion Exte|nsion wi|
|00003a80| 6c 6c 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ll autom|atically|
|00003a90| 20 72 65 2d 73 69 7a 65 | 20 69 74 20 61 73 20 6e | re-size| it as n|
|00003aa0| 65 63 65 73 73 61 72 79 | 20 64 75 72 69 6e 67 20 |ecessary| during |
|00003ab0| 74 72 61 6e 73 6c 61 74 | 69 6f 6e 2e 20 20 55 70 |translat|ion. Up|
|00003ac0| 6f 6e 20 65 78 69 74 2c | 20 69 66 20 74 68 65 20 |on exit,| if the |
|00003ad0| 72 6f 75 74 69 6e 65 20 | 73 75 63 63 65 73 73 66 |routine |successf|
|00003ae0| 75 6c 6c 79 20 65 78 65 | 63 75 74 65 73 2c 20 69 |ully exe|cutes, i|
|00003af0| 74 20 77 69 6c 6c 20 63 | 6f 6e 74 61 69 6e 20 74 |t will c|ontain t|
|00003b00| 68 65 20 74 72 61 6e 73 | 6c 61 74 65 64 20 69 6e |he trans|lated in|
|00003b10| 66 6f 72 6d 61 74 69 6f | 6e 2e 0d 54 68 65 20 66 |formatio|n..The f|
|00003b20| 69 6e 61 6c 20 70 61 72 | 61 6d 65 74 65 72 20 69 |inal par|ameter i|
|00003b30| 73 20 70 72 6f 67 72 65 | 73 73 44 69 61 6c 6f 67 |s progre|ssDialog|
|00003b40| 49 44 2e 20 20 41 74 20 | 74 68 69 73 20 74 69 6d |ID. At |this tim|
|00003b50| 65 20 74 68 61 74 20 70 | 61 72 61 6d 65 74 65 72 |e that p|arameter|
|00003b60| 20 73 68 6f 75 6c 64 20 | 61 6c 77 61 79 73 20 62 | should |always b|
|00003b70| 65 20 61 73 73 69 67 6e | 65 64 20 74 68 65 20 76 |e assign|ed the v|
|00003b80| 61 6c 75 65 20 54 72 61 | 6e 73 6c 61 74 69 6f 6e |alue Tra|nslation|
|00003b90| 53 63 72 61 70 50 72 6f | 67 72 65 73 73 44 69 61 |ScrapPro|gressDia|
|00003ba0| 6c 6f 67 49 44 2e 0d 20 | 20 20 20 20 20 73 74 72 |logID.. | str|
|00003bb0| 75 63 74 20 46 6d 74 73 | 52 65 63 6f 72 64 0d 20 |uct Fmts|Record. |
|00003bc0| 20 20 20 20 20 7b 0d 20 | 20 20 20 20 20 20 20 53 | {. | S|
|00003bd0| 63 72 61 70 54 79 70 65 | 20 74 68 65 54 79 70 65 |crapType| theType|
|00003be0| 3b 0d 20 20 20 20 20 20 | 20 20 53 69 7a 65 20 20 |;. | Size |
|00003bf0| 20 20 20 20 64 61 74 61 | 53 69 7a 65 3b 0d 20 20 | data|Size;. |
|00003c00| 20 20 20 20 7d 3b 0d 20 | 20 20 20 20 20 74 79 70 | };. | typ|
|00003c10| 65 64 65 66 20 73 74 72 | 75 63 74 20 46 6d 74 73 |edef str|uct Fmts|
|00003c20| 52 65 63 6f 72 64 20 46 | 6d 74 73 52 65 63 6f 72 |Record F|mtsRecor|
|00003c30| 64 3b 0d 20 20 20 20 20 | 20 74 79 70 65 64 65 66 |d;. | typedef|
|00003c40| 20 46 6d 74 73 52 65 63 | 6f 72 64 20 2a 46 6d 74 | FmtsRec|ord *Fmt|
|00003c50| 73 52 65 63 6f 72 64 50 | 74 72 3b 0d 20 20 20 20 |sRecordP|tr;. |
|00003c60| 20 20 70 61 73 63 61 6c | 20 4f 53 45 72 72 20 50 | pascal| OSErr P|
|00003c70| 53 74 72 69 6e 67 47 65 | 74 74 65 72 28 53 63 72 |StringGe|tter(Scr|
|00003c80| 61 70 54 79 70 65 20 72 | 65 71 75 65 73 74 65 64 |apType r|equested|
|00003c90| 46 6f 72 6d 61 74 2c 20 | 0d 20 20 20 20 20 20 20 |Format, |. |
|00003ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cb0| 20 20 20 20 20 20 20 20 | 20 20 48 61 6e 64 6c 65 | | Handle|
|00003cc0| 20 20 20 20 64 61 74 61 | 48 2c 20 0d 20 20 20 20 | data|H, . |
|00003cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 76 6f 69 | | voi|
|00003cf0| 64 2a 20 20 20 20 20 73 | 72 63 44 61 74 61 47 65 |d* s|rcDataGe|
|00003d00| 74 74 65 72 52 65 66 43 | 6f 6e 29 0d 20 20 20 20 |tterRefC|on). |
|00003d10| 20 20 7b 0d 20 20 20 20 | 20 20 4f 53 45 72 72 20 | {. | OSErr |
|00003d20| 20 20 20 20 20 72 65 73 | 75 6c 74 3b 0d 20 20 20 | res|ult;. |
|00003d30| 20 20 20 53 74 72 36 33 | 20 20 20 20 20 20 74 68 | Str63| th|
|00003d40| 65 50 53 74 72 69 6e 67 | 3b 0d 09 0d 20 20 20 20 |ePString|;... |
|00003d50| 20 20 2f 2f 20 42 75 69 | 6c 64 20 61 6e 20 69 6e | // Bui|ld an in|
|00003d60| 74 65 72 6e 61 6c 20 62 | 75 66 66 65 72 20 74 6f |ternal b|uffer to|
|00003d70| 20 74 68 65 20 50 53 74 | 72 69 6e 67 20 77 65 20 | the PSt|ring we |
|00003d80| 63 61 6e 20 67 65 74 0d | 20 20 20 20 20 20 42 6c |can get.| Bl|
|00003d90| 6f 63 6b 4d 6f 76 65 28 | 22 5c 70 48 65 6c 6c 6f |ockMove(|"\pHello|
|00003da0| 20 74 68 65 72 65 2c 20 | 74 68 69 73 20 69 73 20 | there, |this is |
|00003db0| 6c 6f 77 65 72 20 63 61 | 73 65 22 2c 20 26 74 68 |lower ca|se", &th|
|00003dc0| 65 50 53 74 72 69 6e 67 | 2c 20 73 69 7a 65 6f 66 |ePString|, sizeof|
|00003dd0| 28 53 74 72 36 33 29 29 | 3b 0d 20 20 20 20 20 20 |(Str63))|;. |
|00003de0| 2f 2f 20 53 65 65 20 69 | 66 20 77 65 20 61 72 65 |// See i|f we are|
|00003df0| 20 62 65 69 6e 67 20 72 | 65 71 75 65 73 74 65 64 | being r|equested|
|00003e00| 20 74 6f 20 74 65 6c 6c | 20 77 68 61 74 20 73 6f | to tell| what so|
|00003e10| 75 72 63 65 20 66 6f 72 | 6d 61 74 27 73 20 77 65 |urce for|mat's we|
|00003e20| 20 68 61 76 65 0d 20 20 | 20 20 20 20 2f 2f 20 61 | have. | // a|
|00003e30| 76 61 69 6c 61 62 6c 65 | 0d 20 20 20 20 20 20 69 |vailable|. i|
|00003e40| 66 20 28 72 65 71 75 65 | 73 74 65 64 46 6f 72 6d |f (reque|stedForm|
|00003e50| 61 74 20 3d 3d 20 27 66 | 6d 74 73 27 29 0d 20 20 |at == 'f|mts'). |
|00003e60| 20 20 20 20 20 20 7b 0d | 20 20 20 20 20 20 20 20 | {.| |
|00003e70| 2f 2f 20 53 69 7a 65 20 | 74 68 65 20 68 61 6e 64 |// Size |the hand|
|00003e80| 6c 65 20 74 6f 20 63 6f | 6e 74 61 69 6e 20 6f 75 |le to co|ntain ou|
|00003e90| 72 20 6f 6e 65 20 73 6f | 75 72 63 65 20 66 6f 72 |r one so|urce for|
|00003ea0| 6d 61 74 0d 20 20 20 20 | 20 20 20 20 53 65 74 48 |mat. | SetH|
|00003eb0| 61 6e 64 6c 65 53 69 7a | 65 28 64 61 74 61 48 2c |andleSiz|e(dataH,|
|00003ec0| 20 73 69 7a 65 6f 66 28 | 46 6d 74 73 52 65 63 6f | sizeof(|FmtsReco|
|00003ed0| 72 64 29 29 3b 0d 20 20 | 20 20 20 20 20 20 69 66 |rd));. | if|
|00003ee0| 20 28 28 72 65 73 75 6c | 74 20 3d 20 4d 65 6d 45 | ((resul|t = MemE|
|00003ef0| 72 72 6f 72 28 29 29 20 | 3d 3d 20 6e 6f 45 72 72 |rror()) |== noErr|
|00003f00| 29 0d 20 20 20 20 20 20 | 20 20 20 20 7b 0d 20 20 |). | {. |
|00003f10| 20 20 20 20 20 20 20 20 | 2f 2f 20 53 74 75 66 66 | |// Stuff|
|00003f20| 20 6f 75 72 20 64 61 74 | 61 20 69 6e 74 6f 20 74 | our dat|a into t|
|00003f30| 68 65 20 66 6d 74 73 20 | 68 61 6e 64 6c 65 0d 20 |he fmts |handle. |
|00003f40| 20 20 20 20 20 20 20 20 | 20 28 28 46 6d 74 73 52 | | ((FmtsR|
|00003f50| 65 63 6f 72 64 50 74 72 | 29 2a 64 61 74 61 48 29 |ecordPtr|)*dataH)|
|00003f60| 2d 3e 74 68 65 54 79 70 | 65 20 3d 20 27 50 53 54 |->theTyp|e = 'PST|
|00003f70| 52 27 3b 0d 20 20 20 20 | 20 20 20 20 20 20 28 28 |R';. | ((|
|00003f80| 46 6d 74 73 52 65 63 6f | 72 64 50 74 72 29 2a 64 |FmtsReco|rdPtr)*d|
|00003f90| 61 74 61 48 29 2d 3e 64 | 61 74 61 53 69 7a 65 20 |ataH)->d|ataSize |
|00003fa0| 3d 20 74 68 65 50 53 74 | 72 69 6e 67 5b 30 5d 2b |= thePSt|ring[0]+|
|00003fb0| 31 3b 0d 20 20 20 20 20 | 20 20 20 20 20 7d 0d 20 |1;. | }. |
|00003fc0| 20 20 20 20 20 20 20 7d | 0d 20 20 20 20 20 20 65 | }|. e|
|00003fd0| 6c 73 65 0d 20 20 20 20 | 20 20 20 20 7b 0d 20 20 |lse. | {. |
|00003fe0| 20 20 20 20 20 20 2f 2f | 20 49 66 20 77 65 27 72 | //| If we'r|
|00003ff0| 65 20 68 65 72 65 2c 20 | 77 65 27 76 65 20 62 65 |e here, |we've be|
|00004000| 65 6e 20 61 73 6b 65 64 | 20 74 6f 20 67 65 74 20 |en asked| to get |
|00004010| 74 68 65 20 73 6f 75 72 | 63 65 20 64 61 74 61 2e |the sour|ce data.|
|00004020| 20 20 20 53 74 75 66 66 | 20 64 61 74 61 20 0d 20 | Stuff| data . |
|00004030| 20 20 20 20 20 20 20 2f | 2f 20 69 6e 74 6f 20 68 | /|/ into h|
|00004040| 61 6e 64 6c 65 20 0d 20 | 20 20 20 20 20 20 20 53 |andle . | S|
|00004050| 65 74 48 61 6e 64 6c 65 | 53 69 7a 65 28 64 61 74 |etHandle|Size(dat|
|00004060| 61 48 2c 20 74 68 65 50 | 53 74 72 69 6e 67 5b 30 |aH, theP|String[0|
|00004070| 5d 2b 31 29 3b 0d 20 20 | 20 20 20 20 20 20 69 66 |]+1);. | if|
|00004080| 20 28 28 72 65 73 75 6c | 74 20 3d 20 4d 65 6d 45 | ((resul|t = MemE|
|00004090| 72 72 6f 72 28 29 29 20 | 3d 3d 20 6e 6f 45 72 72 |rror()) |== noErr|
|000040a0| 29 0d 20 20 20 20 20 20 | 20 20 20 20 42 6c 6f 63 |). | Bloc|
|000040b0| 6b 4d 6f 76 65 28 26 74 | 68 65 50 53 74 72 69 6e |kMove(&t|hePStrin|
|000040c0| 67 2c 20 2a 64 61 74 61 | 48 2c 20 74 68 65 50 53 |g, *data|H, thePS|
|000040d0| 74 72 69 6e 67 5b 30 5d | 2b 31 29 3b 0d 20 20 20 |tring[0]|+1);. |
|000040e0| 20 20 20 20 20 7d 0d 09 | 09 0d 20 20 20 20 20 20 | }..|.. |
|000040f0| 72 65 74 75 72 6e 20 72 | 65 73 75 6c 74 3b 0d 20 |return r|esult;. |
|00004100| 20 20 20 20 20 7d 0d 20 | 20 20 20 20 76 6f 69 64 | }. | void|
|00004110| 20 54 72 61 6e 73 6c 61 | 74 65 50 53 54 52 54 6f | Transla|tePSTRTo|
|00004120| 55 50 50 52 28 76 6f 69 | 64 29 0d 20 20 20 20 20 |UPPR(voi|d). |
|00004130| 7b 0d 20 20 20 20 20 20 | 20 20 20 20 48 61 6e 64 |{. | Hand|
|00004140| 6c 65 20 20 20 20 20 20 | 64 65 73 74 69 6e 61 74 |le |destinat|
|00004150| 69 6f 6e 44 61 74 61 3b | 0d 20 20 20 20 20 20 20 |ionData;|. |
|00004160| 20 20 20 4f 53 45 72 72 | 20 20 20 20 20 20 20 72 | OSErr| r|
|00004170| 65 73 75 6c 74 3b 0d 09 | 0d 20 20 20 20 20 20 20 |esult;..|. |
|00004180| 20 20 20 2f 2f 20 41 20 | 68 61 6e 64 6c 65 20 74 | // A |handle t|
|00004190| 6f 20 66 69 6c 6c 20 77 | 69 74 68 20 74 68 65 20 |o fill w|ith the |
|000041a0| 74 72 61 6e 73 6c 61 74 | 65 64 20 64 61 74 61 0d |translat|ed data.|
|000041b0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 64 65 | | if (de|
|000041c0| 73 74 69 6e 61 74 69 6f | 6e 44 61 74 61 20 3d 20 |stinatio|nData = |
|000041d0| 4e 65 77 48 61 6e 64 6c | 65 28 30 29 29 0d 20 20 |NewHandl|e(0)). |
|000041e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041f0| 20 20 72 65 73 75 6c 74 | 20 3d 20 54 72 61 6e 73 | result| = Trans|
|00004200| 6c 61 74 65 53 63 72 61 | 70 28 50 53 74 72 69 6e |lateScra|p(PStrin|
|00004210| 67 47 65 74 74 65 72 2c | 20 0d 20 20 20 20 20 20 |gGetter,| . |
|00004220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004240| 20 20 20 20 20 20 30 2c | 20 0d 20 20 20 20 20 20 | 0,| . |
|00004250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004270| 20 20 20 20 20 20 27 55 | 50 50 52 27 2c 20 0d 20 | 'U|PPR', . |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042a0| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 73 74 69 | | desti|
|000042b0| 6e 61 74 69 6f 6e 44 61 | 74 61 2c 20 0d 20 20 20 |nationDa|ta, . |
|000042c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042e0| 20 20 20 20 20 20 20 20 | 20 54 72 61 6e 73 6c 61 | | Transla|
|000042f0| 74 69 6f 6e 53 63 72 61 | 70 50 72 6f 67 72 65 73 |tionScra|pProgres|
|00004300| 73 44 69 61 6c 6f 67 49 | 44 29 3b 0d 20 20 20 20 |sDialogI|D);. |
|00004310| 20 20 20 20 20 20 2f 2f | 20 44 6f 20 73 6f 6d 65 | //| Do some|
|00004320| 74 68 69 6e 67 20 77 69 | 74 68 20 74 68 65 20 74 |thing wi|th the t|
|00004330| 72 61 6e 73 6c 61 74 65 | 64 20 69 6e 66 6f 72 6d |ranslate|d inform|
|00004340| 61 74 69 6f 6e 0d 20 20 | 20 20 20 7d 0d 54 68 65 |ation. | }.The|
|00004350| 20 70 72 65 63 65 64 69 | 6e 67 20 65 78 61 6d 70 | precedi|ng examp|
|00004360| 6c 65 20 73 68 6f 77 73 | 20 68 6f 77 20 74 6f 20 |le shows| how to |
|00004370| 75 73 65 20 74 68 65 20 | 54 72 61 6e 73 6c 61 74 |use the |Translat|
|00004380| 65 53 63 72 61 70 28 29 | 20 72 6f 75 74 69 6e 65 |eScrap()| routine|
|00004390| 20 61 6e 64 20 68 6f 77 | 20 74 6f 20 69 6d 70 6c | and how| to impl|
|000043a0| 65 6d 65 6e 74 20 61 20 | 64 61 74 61 2d 67 65 74 |ement a |data-get|
|000043b0| 74 65 72 2e 20 20 49 6e | 20 74 68 65 20 61 62 6f |ter. In| the abo|
|000043c0| 76 65 20 65 78 61 6d 70 | 6c 65 2c 20 54 72 61 6e |ve examp|le, Tran|
|000043d0| 73 6c 61 74 65 53 63 72 | 61 70 28 29 20 69 73 20 |slateScr|ap() is |
|000043e0| 63 61 6c 6c 65 64 20 72 | 65 71 75 65 73 74 69 6e |called r|equestin|
|000043f0| 67 20 74 79 70 65 20 27 | 55 50 50 52 27 20 28 75 |g type '|UPPR' (u|
|00004400| 70 70 65 72 20 63 61 73 | 65 29 20 61 6e 64 20 70 |pper cas|e) and p|
|00004410| 72 6f 76 69 64 69 6e 67 | 20 74 68 65 20 73 6f 75 |roviding| the sou|
|00004420| 72 63 65 20 64 61 74 61 | 20 74 68 72 6f 75 67 68 |rce data| through|
|00004430| 20 74 68 65 20 64 61 74 | 61 2d 67 65 74 74 65 72 | the dat|a-getter|
|00004440| 20 72 65 66 65 72 65 6e | 63 65 64 20 69 6e 20 50 | referen|ced in P|
|00004450| 53 74 72 69 6e 67 47 65 | 74 74 65 72 2e 0d 4e 65 |StringGe|tter..Ne|
|00004460| 77 20 54 72 61 6e 73 6c | 61 74 69 6f 6e 20 45 78 |w Transl|ation Ex|
|00004470| 74 65 6e 73 69 6f 6e 20 | 43 61 70 61 62 69 6c 69 |tension |Capabili|
|00004480| 74 69 65 73 0d 42 65 67 | 69 6e 6e 69 6e 67 20 77 |ties.Beg|inning w|
|00004490| 69 74 68 20 54 72 61 6e | 73 6c 61 74 69 6f 6e 20 |ith Tran|slation |
|000044a0| 4d 61 6e 61 67 65 72 20 | 31 2e 31 2c 20 54 72 61 |Manager |1.1, Tra|
|000044b0| 6e 73 6c 61 74 69 6f 6e | 20 45 78 74 65 6e 73 69 |nslation| Extensi|
|000044c0| 6f 6e 73 20 6e 6f 77 20 | 68 61 76 65 20 74 68 65 |ons now |have the|
|000044d0| 20 63 61 70 61 62 69 6c | 69 74 79 20 6f 66 20 67 | capabil|ity of g|
|000044e0| 65 6e 65 72 61 74 69 6e | 67 20 74 68 65 20 66 69 |eneratin|g the fi|
|000044f0| 6c 65 6e 61 6d 65 73 20 | 6f 66 20 64 6f 63 75 6d |lenames |of docum|
|00004500| 65 6e 74 73 20 63 72 65 | 61 74 65 64 20 62 79 20 |ents cre|ated by |
|00004510| 61 20 64 6f 63 75 6d 65 | 6e 74 20 63 6f 6e 76 65 |a docume|nt conve|
|00004520| 72 74 65 72 2e 20 20 54 | 68 69 73 20 69 73 20 75 |rter. T|his is u|
|00004530| 73 65 66 75 6c 2c 20 66 | 6f 72 20 65 78 61 6d 70 |seful, f|or examp|
|00004540| 6c 65 2c 20 69 66 20 79 | 6f 75 72 20 54 72 61 6e |le, if y|our Tran|
|00004550| 73 6c 61 74 69 6f 6e 20 | 45 78 74 65 6e 73 69 6f |slation |Extensio|
|00004560| 6e 20 77 61 6e 74 73 20 | 74 6f 20 70 72 6f 76 69 |n wants |to provi|
|00004570| 64 65 20 61 20 44 4f 53 | 20 63 6f 6d 70 61 74 69 |de a DOS| compati|
|00004580| 62 6c 65 20 66 69 6c 65 | 6e 61 6d 65 20 66 6f 72 |ble file|name for|
|00004590| 20 67 65 6e 65 72 61 74 | 65 64 20 64 6f 63 75 6d | generat|ed docum|
|000045a0| 65 6e 74 73 2e 20 20 4e | 61 6d 65 20 67 65 6e 65 |ents. N|ame gene|
|000045b0| 72 61 74 69 6f 6e 20 69 | 73 20 64 6f 6e 65 20 62 |ration i|s done b|
|000045c0| 79 20 69 6d 70 6c 65 6d | 65 6e 74 69 6e 67 20 74 |y implem|enting t|
|000045d0| 68 65 20 6e 65 77 20 54 | 72 61 6e 73 6c 61 74 69 |he new T|ranslati|
|000045e0| 6f 6e 20 45 78 74 65 6e | 73 69 6f 6e 20 72 6f 75 |on Exten|sion rou|
|000045f0| 74 69 6e 65 20 28 73 65 | 6c 65 63 74 6f 72 20 6b |tine (se|lector k|
|00004600| 54 72 61 6e 73 6c 61 74 | 65 47 65 74 54 72 61 6e |Translat|eGetTran|
|00004610| 73 6c 61 74 65 64 46 69 | 6c 65 6e 61 6d 65 29 2e |slatedFi|lename).|
|00004620| 0d 20 20 20 20 20 20 70 | 61 73 63 61 6c 20 43 6f |. p|ascal Co|
|00004630| 6d 70 6f 6e 65 6e 74 52 | 65 73 75 6c 74 20 44 6f |mponentR|esult Do|
|00004640| 47 65 74 54 72 61 6e 73 | 6c 61 74 65 64 46 69 6c |GetTrans|latedFil|
|00004650| 65 6e 61 6d 65 28 43 6f | 6d 70 6f 6e 65 6e 74 49 |ename(Co|mponentI|
|00004660| 6e 73 74 61 6e 63 65 20 | 73 65 6c 66 2c 20 0d 20 |nstance |self, . |
|00004670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046a0| 20 20 20 20 46 69 6c 65 | 54 79 70 65 20 20 20 20 | File|Type |
|000046b0| 20 20 20 20 20 20 64 73 | 74 54 79 70 65 2c 20 0d | ds|tType, .|
|000046c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046f0| 20 20 20 20 20 6c 6f 6e | 67 20 20 20 20 20 20 20 | lon|g |
|00004700| 20 20 20 20 20 20 20 64 | 73 74 54 79 70 65 48 69 | d|stTypeHi|
|00004710| 6e 74 2c 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |nt, . | |
|00004720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004740| 20 20 20 20 20 20 20 20 | 20 20 46 53 53 70 65 63 | | FSSpec|
|00004750| 2a 20 20 20 20 20 20 20 | 20 20 20 20 74 68 65 44 |* | theD|
|00004760| 6f 63 75 6d 65 6e 74 29 | 3b 0d 54 68 69 73 20 72 |ocument)|;.This r|
|00004770| 6f 75 74 69 6e 65 20 69 | 73 20 63 61 6c 6c 65 64 |outine i|s called|
|00004780| 20 61 66 74 65 72 20 44 | 6f 49 64 65 6e 74 69 66 | after D|oIdentif|
|00004790| 79 46 69 6c 65 28 29 2c | 20 62 75 74 20 62 65 66 |yFile(),| but bef|
|000047a0| 6f 72 65 20 44 6f 54 72 | 61 6e 73 6c 61 74 65 46 |ore DoTr|anslateF|
|000047b0| 69 6c 65 28 29 2e 0d 54 | 68 65 20 66 69 72 73 74 |ile()..T|he first|
|000047c0| 20 70 61 72 61 6d 65 74 | 65 72 2c 20 6c 69 6b 65 | paramet|er, like|
|000047d0| 20 61 6c 6c 20 6f 74 68 | 65 72 20 72 65 66 65 72 | all oth|er refer|
|000047e0| 65 6e 63 65 73 20 74 6f | 20 73 65 6c 66 20 69 6e |ences to| self in|
|000047f0| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|00004800| 61 6e 61 67 65 72 2c 20 | 69 73 20 61 20 72 65 66 |anager, |is a ref|
|00004810| 65 72 65 6e 63 65 20 74 | 6f 20 74 68 69 73 20 69 |erence t|o this i|
|00004820| 6e 73 74 61 6e 63 65 20 | 6f 66 20 74 68 65 20 63 |nstance |of the c|
|00004830| 6f 6d 70 6f 6e 65 6e 74 | 2e 20 20 64 73 74 54 79 |omponent|. dstTy|
|00004840| 70 65 20 69 73 20 74 68 | 65 20 74 61 72 67 65 74 |pe is th|e target|
|00004850| 20 74 79 70 65 20 61 6e | 64 20 64 73 74 54 79 70 | type an|d dstTyp|
|00004860| 65 48 69 6e 74 20 69 73 | 20 74 68 65 20 68 69 6e |eHint is| the hin|
|00004870| 74 20 74 68 61 74 20 67 | 6f 65 73 20 77 69 74 68 |t that g|oes with|
|00004880| 20 74 68 61 74 20 74 79 | 70 65 20 2d 20 74 68 65 | that ty|pe - the|
|00004890| 79 20 61 72 65 20 74 68 | 65 20 73 61 6d 65 20 74 |y are th|e same t|
|000048a0| 68 61 74 20 77 69 6c 6c | 20 62 65 20 70 61 73 73 |hat will| be pass|
|000048b0| 65 64 20 74 6f 20 44 6f | 54 72 61 6e 73 6c 61 74 |ed to Do|Translat|
|000048c0| 65 46 69 6c 65 28 29 20 | 77 68 65 6e 20 74 68 61 |eFile() |when tha|
|000048d0| 74 20 63 61 6c 6c 20 69 | 73 20 6d 61 64 65 20 62 |t call i|s made b|
|000048e0| 79 20 74 68 65 20 54 72 | 61 6e 73 6c 61 74 69 6f |y the Tr|anslatio|
|000048f0| 6e 20 4d 61 6e 61 67 65 | 72 2e 20 20 54 68 65 20 |n Manage|r. The |
|00004900| 66 69 6e 61 6c 20 70 61 | 72 61 6d 65 74 65 72 2c |final pa|rameter,|
|00004910| 20 74 68 65 44 6f 63 75 | 6d 65 6e 74 20 69 73 20 | theDocu|ment is |
|00004920| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 20 74 6f 20 |the docu|ment to |
|00004930| 67 65 6e 65 72 61 74 65 | 20 61 20 6e 61 6d 65 20 |generate| a name |
|00004940| 6f 6e 20 2d 20 61 6e 64 | 20 77 68 65 72 65 20 74 |on - and| where t|
|00004950| 6f 20 73 74 6f 72 65 20 | 79 6f 75 72 20 67 65 6e |o store |your gen|
|00004960| 65 72 61 74 65 64 20 6e | 61 6d 65 2e 0d 49 74 d5 |erated n|ame..It.|
|00004970| 73 20 69 6d 70 6f 72 74 | 61 6e 74 20 74 6f 20 6e |s import|ant to n|
|00004980| 6f 74 20 6d 6f 64 69 66 | 79 20 74 68 65 44 6f 63 |ot modif|y theDoc|
|00004990| 75 6d 65 6e 74 20 75 6e | 6c 65 73 73 20 79 6f 75 |ument un|less you|
|000049a0| 72 20 72 6f 75 74 69 6e | 65 20 73 75 63 63 65 73 |r routin|e succes|
|000049b0| 73 66 75 6c 6c 79 20 63 | 6f 6d 70 6c 65 74 65 73 |sfully c|ompletes|
|000049c0| 20 62 65 63 61 75 73 65 | 20 77 68 61 74 65 76 65 | because| whateve|
|000049d0| 72 20 69 73 20 72 65 74 | 75 72 6e 65 64 20 77 69 |r is ret|urned wi|
|000049e0| 6c 6c 20 62 65 20 75 73 | 65 64 20 28 65 76 65 6e |ll be us|ed (even|
|000049f0| 20 69 66 20 79 6f 75 20 | 72 65 74 75 72 6e 20 61 | if you |return a|
|00004a00| 6e 20 65 72 72 6f 72 29 | 2e 0d 59 6f 75 72 20 54 |n error)|..Your T|
|00004a10| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 45 78 74 65 6e |ranslati|on Exten|
|00004a20| 73 69 6f 6e 20 73 68 6f | 75 6c 64 20 76 65 72 69 |sion sho|uld veri|
|00004a30| 66 79 20 74 68 65 20 75 | 6e 69 71 75 65 6e 65 73 |fy the u|niquenes|
|00004a40| 73 20 6f 66 20 74 68 65 | 20 66 69 6c 65 6e 61 6d |s of the| filenam|
|00004a50| 65 20 69 6e 20 74 68 65 | 20 74 61 72 67 65 74 20 |e in the| target |
|00004a60| 6c 6f 63 61 74 69 6f 6e | 20 62 65 66 6f 72 65 20 |location| before |
|00004a70| 72 65 74 75 72 6e 69 6e | 67 2e 0d 54 68 65 20 54 |returnin|g..The T|
|00004a80| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 4d 61 6e 61 67 |ranslati|on Manag|
|00004a90| 65 72 20 77 69 6c 6c 20 | 6e 6f 74 20 63 61 6c 6c |er will |not call|
|00004aa0| 20 79 6f 75 72 20 54 72 | 61 6e 73 6c 61 74 69 6f | your Tr|anslatio|
|00004ab0| 6e 20 45 78 74 65 6e 73 | 69 6f 6e 20 77 69 74 68 |n Extens|ion with|
|00004ac0| 20 74 68 69 73 20 6d 65 | 73 73 61 67 65 20 75 6e | this me|ssage un|
|00004ad0| 6c 65 73 73 20 79 6f 75 | 20 68 61 76 65 20 74 68 |less you| have th|
|00004ae0| 65 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 20 66 6c |e transl|ation fl|
|00004af0| 61 67 73 20 63 6f 72 72 | 65 63 74 6c 79 20 73 65 |ags corr|ectly se|
|00004b00| 74 2e 20 20 54 68 61 74 | 20 69 73 20 64 6f 6e 65 |t. That| is done|
|00004b10| 20 62 79 20 6d 6f 64 69 | 66 79 69 6e 67 20 74 68 | by modi|fying th|
|00004b20| 65 20 27 74 68 6e 67 27 | 20 72 65 73 6f 75 72 63 |e 'thng'| resourc|
|00004b30| 65 73 20 46 6c 61 67 73 | 20 66 69 65 6c 64 2c 20 |es Flags| field, |
|00004b40| 61 6e 64 20 73 65 74 74 | 69 6e 67 20 74 68 65 20 |and sett|ing the |
|00004b50| 6b 54 72 61 6e 73 6c 61 | 74 6f 72 43 61 6e 47 65 |kTransla|torCanGe|
|00004b60| 6e 65 72 61 74 65 46 69 | 6c 65 6e 61 6d 65 20 62 |nerateFi|lename b|
|00004b70| 69 74 2e 0d 50 6f 77 65 | 72 50 43 20 54 72 61 6e |it..Powe|rPC Tran|
|00004b80| 73 6c 61 74 69 6f 6e 20 | 45 78 74 65 6e 73 69 6f |slation |Extensio|
|00004b90| 6e 73 0d 4e 61 74 69 76 | 65 20 54 72 61 6e 73 6c |ns.Nativ|e Transl|
|00004ba0| 61 74 69 6f 6e 20 45 78 | 74 65 6e 73 69 6f 6e 73 |ation Ex|tensions|
|00004bb0| 20 61 72 65 20 70 72 65 | 74 74 79 20 6d 75 63 68 | are pre|tty much|
|00004bc0| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 36 38 4b | the sam|e as 68K|
|00004bd0| 20 6f 6e 65 73 2e 20 20 | 54 68 65 20 62 69 67 67 | ones. |The bigg|
|00004be0| 65 73 74 20 64 69 66 66 | 65 72 65 6e 63 65 20 69 |est diff|erence i|
|00004bf0| 73 20 70 75 74 74 69 6e | 67 20 61 20 77 72 61 70 |s puttin|g a wrap|
|00004c00| 70 65 72 20 61 72 6f 75 | 6e 64 20 74 68 65 20 63 |per arou|nd the c|
|00004c10| 6f 64 65 2e 20 20 59 6f | 75 20 68 61 76 65 20 73 |ode. Yo|u have s|
|00004c20| 65 76 65 72 61 6c 20 6f | 70 74 69 6f 6e 73 20 77 |everal o|ptions w|
|00004c30| 68 65 6e 20 77 72 69 74 | 69 6e 67 20 61 20 74 72 |hen writ|ing a tr|
|00004c40| 61 6e 73 6c 61 74 6f 72 | 2e 20 20 59 6f 75 72 20 |anslator|. Your |
|00004c50| 74 72 61 6e 73 6c 61 74 | 6f 72 20 63 61 6e 20 62 |translat|or can b|
|00004c60| 65 20 36 38 4b 2c 20 79 | 6f 75 72 20 74 72 61 6e |e 68K, y|our tran|
|00004c70| 73 6c 61 74 6f 72 20 63 | 61 6e 20 62 65 20 50 6f |slator c|an be Po|
|00004c80| 77 65 72 50 43 20 6f 6e | 6c 79 2c 20 6f 72 20 79 |werPC on|ly, or y|
|00004c90| 6f 75 72 20 74 72 61 6e | 73 6c 61 74 6f 72 20 63 |our tran|slator c|
|00004ca0| 61 6e 20 62 65 20 66 61 | 74 20 28 62 6f 74 68 20 |an be fa|t (both |
|00004cb0| 36 38 4b 20 61 6e 64 20 | 50 6f 77 65 72 50 43 29 |68K and |PowerPC)|
|00004cc0| 2e 0d 54 68 65 20 62 65 | 73 74 20 6f 66 20 62 6f |..The be|st of bo|
|00004cd0| 74 68 20 77 6f 72 6c 64 | 73 20 69 73 20 74 68 65 |th world|s is the|
|00004ce0| 20 74 68 69 72 64 20 63 | 61 73 65 2e 20 20 59 6f | third c|ase. Yo|
|00004cf0| 75 72 20 74 72 61 6e 73 | 6c 61 74 6f 72 20 69 73 |ur trans|lator is|
|00004d00| 20 61 20 62 69 74 20 62 | 69 67 67 65 72 2c 20 62 | a bit b|igger, b|
|00004d10| 75 74 20 61 20 75 73 65 | 72 20 63 61 6e 20 73 69 |ut a use|r can si|
|00004d20| 6d 70 6c 79 20 64 72 61 | 67 20 69 74 20 66 72 6f |mply dra|g it fro|
|00004d30| 6d 20 6d 61 63 68 69 6e | 65 20 74 6f 20 6d 61 63 |m machin|e to mac|
|00004d40| 68 69 6e 65 20 77 69 74 | 68 6f 75 74 20 77 6f 72 |hine wit|hout wor|
|00004d50| 72 79 69 6e 67 20 61 62 | 6f 75 74 20 74 68 65 20 |rying ab|out the |
|00004d60| 70 6c 61 74 66 6f 72 6d | 2e 20 20 54 6f 20 69 6d |platform|. To im|
|00004d70| 70 6c 65 6d 65 6e 74 20 | 61 20 6e 61 74 69 76 65 |plement |a native|
|00004d80| 20 50 6f 77 65 72 50 43 | 20 74 72 61 6e 73 6c 61 | PowerPC| transla|
|00004d90| 74 6f 72 2c 20 73 69 6d | 70 6c 79 20 72 65 70 6c |tor, sim|ply repl|
|00004da0| 61 63 65 20 79 6f 75 72 | 20 63 6f 64 65 20 72 65 |ace your| code re|
|00004db0| 66 65 72 72 65 64 20 62 | 79 20 79 6f 75 72 20 27 |ferred b|y your '|
|00004dc0| 74 68 6e 67 27 20 72 65 | 73 6f 75 72 63 65 20 28 |thng' re|source (|
|00004dd0| 75 73 75 61 6c 6c 79 20 | 74 79 70 65 20 27 78 6c |usually |type 'xl|
|00004de0| 61 74 27 29 20 77 69 74 | 68 20 61 20 72 65 66 65 |at') wit|h a refe|
|00004df0| 72 65 6e 63 65 20 74 6f | 20 61 20 72 65 73 6f 75 |rence to| a resou|
|00004e00| 72 63 65 20 77 72 61 70 | 70 65 64 20 62 79 20 61 |rce wrap|ped by a|
|00004e10| 20 27 73 64 65 73 27 20 | 72 65 73 6f 75 72 63 65 | 'sdes' |resource|
|00004e20| 20 28 73 65 65 20 4d 69 | 78 65 64 4d 6f 64 65 2e | (see Mi|xedMode.|
|00004e30| 72 29 2e 20 20 41 6e 20 | 27 73 64 65 73 27 20 69 |r). An |'sdes' i|
|00004e40| 6e 63 6c 75 64 65 73 20 | 62 6f 74 68 20 79 6f 75 |ncludes |both you|
|00004e50| 72 20 36 38 4b 20 61 6e | 64 20 50 6f 77 65 72 50 |r 68K an|d PowerP|
|00004e60| 43 20 63 6f 64 65 20 69 | 6e 74 6f 20 61 20 73 69 |C code i|nto a si|
|00004e70| 6e 67 6c 65 20 72 65 73 | 6f 75 72 63 65 20 61 6e |ngle res|ource an|
|00004e80| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |d automa|tically |
|00004e90| 64 69 73 70 61 74 63 68 | 65 73 20 74 6f 20 74 68 |dispatch|es to th|
|00004ea0| 65 20 63 6f 72 72 65 63 | 74 20 36 38 4b 20 6f 72 |e correc|t 68K or|
|00004eb0| 20 50 6f 77 65 72 50 43 | 20 63 6f 64 65 20 64 65 | PowerPC| code de|
|00004ec0| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 77 68 61 74 20 |pending |on what |
|00004ed0| 70 6c 61 74 66 6f 72 6d | 20 79 6f 75 20 61 72 65 |platform| you are|
|00004ee0| 20 6f 6e 2e 0d 46 6f 72 | 20 73 70 65 63 69 66 69 | on..For| specifi|
|00004ef0| 63 20 65 78 61 6d 70 6c | 65 73 20 6f 6e 20 70 75 |c exampl|es on pu|
|00004f00| 74 74 69 6e 67 20 74 6f | 67 65 74 68 65 72 20 61 |tting to|gether a|
|00004f10| 20 66 61 74 20 72 65 73 | 6f 75 72 63 65 2c 20 70 | fat res|ource, p|
|00004f20| 6c 65 61 73 65 20 63 6f | 6e 73 75 6c 74 20 49 6e |lease co|nsult In|
|00004f30| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 2c 20 |side Mac|intosh, |
|00004f40| 73 70 65 63 69 66 69 63 | 61 6c 6c 79 2c 20 74 68 |specific|ally, th|
|00004f50| 65 20 63 68 61 70 74 65 | 72 20 6f 6e 20 74 68 65 |e chapte|r on the|
|00004f60| 20 4d 69 78 65 64 20 4d | 6f 64 65 20 4d 61 6e 61 | Mixed M|ode Mana|
|00004f70| 67 65 72 2e 0d 46 75 72 | 74 68 65 72 20 52 65 66 |ger..Fur|ther Ref|
|00004f80| 65 72 65 6e 63 65 3a 0d | a5 09 49 6e 73 69 64 65 |erence:.|..Inside|
|00004f90| 20 4d 61 63 69 6e 74 6f | 73 68 2c 20 4d 6f 72 65 | Macinto|sh, More|
|00004fa0| 20 4d 61 63 69 6e 74 6f | 73 68 20 54 6f 6f 6c 62 | Macinto|sh Toolb|
|00004fb0| 6f 78 2c 20 54 72 61 6e | 73 6c 61 74 69 6f 6e 20 |ox, Tran|slation |
|00004fc0| 4d 61 6e 61 67 65 72 0d | a5 09 49 6e 73 69 64 65 |Manager.|..Inside|
|00004fd0| 20 4d 61 63 69 6e 74 6f | 73 68 2c 20 4d 6f 72 65 | Macinto|sh, More|
|00004fe0| 20 4d 61 63 69 6e 74 6f | 73 68 20 54 6f 6f 6c 62 | Macinto|sh Toolb|
|00004ff0| 6f 78 2c 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |ox, Comp|onent Ma|
|00005000| 6e 61 67 65 72 0d a5 09 | 49 6e 73 69 64 65 20 4d |nager...|Inside M|
|00005010| 61 63 69 6e 74 6f 73 68 | 2c 20 50 6f 77 65 72 50 |acintosh|, PowerP|
|00005020| 43 20 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |C System| Softwar|
|00005030| 65 2c 20 4d 69 78 65 64 | 20 4d 6f 64 65 20 4d 61 |e, Mixed| Mode Ma|
|00005040| 6e 61 67 65 72 0d a5 09 | 41 50 44 41 2c 20 4d 61 |nager...|APDA, Ma|
|00005050| 63 69 6e 74 6f 73 68 20 | 45 61 73 79 20 4f 70 65 |cintosh |Easy Ope|
|00005060| 6e 20 44 65 76 65 6c 6f | 70 65 72 73 20 4b 69 74 |n Develo|pers Kit|
|00005070| 0d 14 64 00 00 00 00 03 | 48 02 52 00 11 02 ff 0c |..d.....|H.R.....|
|00005080| 00 ff ff ff ff 00 00 00 | 00 00 00 00 00 02 52 00 |........|......R.|
|00005090| 00 03 48 00 00 00 00 00 | 00 00 1e 00 01 00 0a 00 |..H.....|........|
|000050a0| 00 00 00 03 49 02 52 00 | 20 02 c1 00 58 02 c1 02 |....I.R.| ...X...|
|000050b0| 1d 00 2c 00 08 00 14 05 | 54 69 6d 65 73 00 03 00 |..,.....|Times...|
|000050c0| 14 00 0d 00 0a 00 2e 00 | 04 00 00 00 00 00 28 02 |........|......(.|
|000050d0| d6 00 5a 17 54 72 61 6e | 73 6c 61 74 69 6f 6e 20 |..Z.Tran|slation |
|000050e0| 4d 61 6e 61 67 65 72 20 | 31 2e 31 00 28 02 d6 02 |Manager |1.1.(...|
|000050f0| 04 01 31 00 29 05 05 20 | 6f 66 20 39 00 00 28 02 |..1.).. |of 9..(.|
|00005100| ec 00 5a 07 54 6f 6f 6c | 62 6f 78 00 a1 00 64 00 |..Z.Tool|box...d.|
|00005110| 0c 57 4f 52 44 00 00 00 | 00 00 53 01 ca 00 a0 00 |.WORD...|..S.....|
|00005120| 8c 00 a1 00 64 00 0c 57 | 4f 52 44 00 00 00 00 00 |....d..W|ORD.....|
|00005130| 52 01 c9 00 a0 00 82 00 | 01 00 0a 00 2f 00 5a 00 |R.......|..../.Z.|
|00005140| 81 02 23 00 07 00 00 00 | 00 00 08 00 0a 00 09 30 |..#.....|.......0|
|00005150| 49 88 3a b5 9c f0 39 00 | 22 00 7b 02 1a 00 00 00 |I.:...9.|".{.....|
|00005160| 09 ff ff ff ff ff ff ff | ff 00 23 00 00 00 a0 00 |........|..#.....|
|00005170| c4 00 a1 00 64 00 0a 4f | 4e 4c 4e 00 66 00 00 01 |....d..O|NLN.f...|
|00005180| fe 00 a0 00 8c 00 a1 00 | 64 00 31 64 72 77 32 00 |........|d.1drw2.|
|00005190| 02 01 c9 00 2d 01 e1 01 | 5f 00 00 80 00 00 00 00 |....-...|_.......|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 ff ff ff |........|........|
|000051b0| ff ff ff 00 01 00 00 01 | 8f 00 00 00 00 00 a1 00 |........|........|
|000051c0| 96 00 0c 01 00 00 00 02 | 78 00 00 00 00 00 00 00 |........|x.......|
|000051d0| a1 00 64 00 10 64 72 77 | 32 00 3a 00 05 00 00 00 |..d..drw|2.:.....|
|000051e0| 00 00 01 00 00 00 a1 00 | 64 00 0e 64 72 77 32 00 |........|d..drw2.|
|000051f0| 3a 00 02 00 24 00 00 00 | 00 00 a1 00 64 00 34 64 |:...$...|....d.4d|
|00005200| 72 77 32 00 3a 00 01 00 | 03 01 00 00 18 00 00 00 |rw2.:...|........|
|00005210| 00 00 00 00 00 00 00 00 | 01 00 01 00 01 00 01 00 |........|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 a1 00 9a 00 | 08 ff fa 00 00 00 97 40 |........|.......@|
|00005240| 00 00 a0 00 98 00 04 01 | 00 00 0d 00 18 00 2e 00 |........|........|
|00005250| 04 00 00 01 00 00 10 57 | 49 51 6b 57 49 51 6b 00 |.......W|IQkWIQk.|
|00005260| 28 00 42 00 5d 13 4e 65 | 77 20 54 65 63 68 6e 69 |(.B.].Ne|w Techni|
|00005270| 63 61 6c 20 4e 6f 74 65 | 73 00 a0 00 99 00 a1 00 |cal Note|s.......|
|00005280| 64 00 08 64 72 77 32 00 | 3a 00 04 00 a1 14 e3 00 |d..drw2.|:.......|
|00005290| 02 00 01 00 a0 00 97 00 | a1 00 64 00 31 64 72 77 |........|..d.1drw|
|000052a0| 32 00 02 02 06 01 65 02 | 19 01 f4 00 00 80 00 00 |2.....e.|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 ff |........|........|
|000052c0| ff ff ff ff ff 00 01 00 | 00 01 50 00 00 00 00 00 |........|..P.....|
|000052d0| a1 00 96 00 0c 01 00 00 | 00 02 78 00 00 00 00 00 |........|..x.....|
|000052e0| 00 00 a1 00 64 00 10 64 | 72 77 32 00 3a 00 05 00 |....d..d|rw2.:...|
|000052f0| 00 00 00 00 01 00 00 00 | a1 00 64 00 0e 64 72 77 |........|..d..drw|
|00005300| 32 00 3a 00 02 00 24 00 | 00 00 00 00 a1 00 64 00 |2.:...$.|......d.|
|00005310| 34 64 72 77 32 00 3a 00 | 01 00 03 00 00 00 12 00 |4drw2.:.|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 01 00 01 00 01 00 |........|........|
|00005330| 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 a1 00 | 9a 00 08 ff fb 80 00 00 |........|........|
|00005350| 45 c0 00 00 a0 00 98 00 | 04 00 00 00 0d 00 12 00 |E.......|........|
|00005360| 15 16 80 00 28 00 7b 01 | 95 11 44 65 76 65 6c 6f |....(.{.|..Develo|
|00005370| 70 65 72 20 53 75 70 70 | 6f 72 74 00 a0 00 99 00 |per Supp|ort.....|
|00005380| a1 00 64 00 08 64 72 77 | 32 00 3a 00 04 00 a1 14 |..d..drw|2.:.....|
|00005390| e3 00 02 00 01 00 a0 00 | 97 00 a1 00 64 00 60 64 |........|....d.`d|
|000053a0| 72 77 32 00 03 02 00 00 | 2d 02 00 01 ef 00 00 00 |rw2.....|-.......|
|000053b0| 00 00 00 00 00 02 02 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 ff ff ff ff ff ff 00 | 01 00 01 08 4b 00 00 00 |........|....K...|
|000053d0| 00 02 00 01 ef 02 00 00 | 2d 00 00 00 00 00 00 00 |........|-.......|
|000053e0| 00 00 01 00 14 00 0c 00 | 03 00 02 00 00 00 5a 00 |........|......Z.|
|000053f0| 01 00 00 00 02 00 00 00 | 03 00 0c 00 00 00 00 00 |........|........|
|00005400| 07 00 02 00 02 00 08 00 | 08 00 20 00 66 02 1c 00 |........|.. .f...|
|00005410| 66 00 5a 00 a1 00 64 00 | 31 64 72 77 32 00 02 01 |f.Z...d.|1drw2...|
|00005420| ca 01 c0 01 fa 01 e9 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 ff ff ff ff ff |........|........|
|00005440| ff 00 01 00 00 01 4b 00 | 00 00 00 00 a1 00 96 00 |......K.|........|
|00005450| 0c 01 00 00 00 02 78 00 | 00 00 00 00 00 00 a1 00 |......x.|........|
|00005460| 64 00 10 64 72 77 32 00 | 3a 00 05 00 00 00 00 00 |d..drw2.|:.......|
|00005470| 01 00 00 00 a1 00 64 00 | 0e 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|00005480| 02 00 24 00 00 00 00 00 | a1 00 64 00 34 64 72 77 |..$.....|..d.4drw|
|00005490| 32 00 3a 00 01 00 03 00 | 00 00 30 00 00 00 00 00 |2.:.....|..0.....|
|000054a0| 00 00 00 00 00 00 01 00 | 01 00 01 00 01 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 a1 00 9a 00 08 ff | f4 00 00 00 13 80 00 00 |........|........|
|000054d0| a0 00 98 00 0d 00 30 00 | 28 00 55 01 ef 01 f0 00 |......0.|(.U.....|
|000054e0| a0 00 99 00 a1 00 64 00 | 08 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|000054f0| 04 00 a1 14 e3 00 02 00 | 01 00 a0 00 97 00 a1 00 |........|........|
|00005500| 64 00 31 64 72 77 32 00 | 02 01 ef 01 e6 01 fa 01 |d.1drw2.|........|
|00005510| f0 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 ff ff ff | ff ff ff 00 01 00 00 01 |........|........|
|00005530| 00 00 00 00 00 00 a1 00 | 96 00 0c 01 00 00 00 02 |........|........|
|00005540| 78 00 00 00 00 00 00 00 | a1 00 64 00 10 64 72 77 |x.......|..d..drw|
|00005550| 32 00 3a 00 05 00 00 00 | 00 00 01 00 00 00 a1 00 |2.:.....|........|
|00005560| 64 00 0e 64 72 77 32 00 | 3a 00 02 00 24 00 00 00 |d..drw2.|:...$...|
|00005570| 00 00 a1 00 64 00 34 64 | 72 77 32 00 3a 00 01 00 |....d.4d|rw2.:...|
|00005580| 03 00 00 00 09 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 01 00 01 00 01 00 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 a1 00 9a 00 |........|........|
|000055b0| 08 ff fd 80 00 00 04 00 | 00 00 a0 00 98 00 0d 00 |........|........|
|000055c0| 09 00 15 6c 00 00 2b 26 | 09 01 a8 00 a0 00 99 00 |...l..+&|........|
|000055d0| a1 00 64 00 08 64 72 77 | 32 00 3a 00 04 00 a1 14 |..d..drw|2.:.....|
|000055e0| e3 00 02 00 01 00 a0 00 | 97 00 a1 00 64 00 31 64 |........|....d.1d|
|000055f0| 72 77 32 00 02 01 e5 00 | 2d 01 f8 00 79 00 00 00 |rw2.....|-...y...|
|00005600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005610| 00 ff ff ff ff ff ff 00 | 01 00 01 01 00 00 00 01 |........|........|
|00005620| 00 00 a1 00 96 00 0c 01 | 00 00 00 02 78 00 00 00 |........|....x...|
|00005630| 00 00 00 00 a1 00 64 00 | 10 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|00005640| 05 00 00 00 00 00 01 00 | 00 00 a1 00 64 00 0e 64 |........|....d..d|
|00005650| 72 77 32 00 3a 00 02 00 | 24 00 00 00 00 00 a1 00 |rw2.:...|$.......|
|00005660| 64 00 34 64 72 77 32 00 | 3a 00 01 00 03 00 00 00 |d.4drw2.|:.......|
|00005670| 12 00 00 00 00 00 00 00 | 00 00 00 00 01 00 01 00 |........|........|
|00005680| 01 00 01 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005690| 00 00 00 00 00 00 00 00 | a1 00 9a 00 08 ff fb 80 |........|........|
|000056a0| 00 00 25 00 00 00 a0 00 | 98 00 0d 00 12 00 15 42 |..%.....|.......B|
|000056b0| 80 00 28 00 5a 00 5c 09 | 4d 61 63 69 6e 74 6f 73 |..(.Z.\.|Macintos|
|000056c0| 68 00 a0 00 99 00 a1 00 | 64 00 08 64 72 77 32 00 |h.......|d..drw2.|
|000056d0| 3a 00 04 00 a1 14 e3 00 | 02 00 01 00 a0 00 97 00 |:.......|........|
|000056e0| a0 00 8d 00 a1 00 64 00 | 06 64 72 77 32 00 44 00 |......d.|.drw2.D.|
|000056f0| a0 00 83 00 a1 00 64 00 | 04 57 4f 52 44 00 a0 00 |......d.|.WORD...|
|00005700| 8d 00 01 00 0a 00 00 00 | 00 03 49 02 52 00 04 01 |........|..I.R...|
|00005710| 00 00 2e 00 04 00 00 00 | 00 00 10 00 01 00 01 00 |........|........|
|00005720| 01 00 01 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00005730| 00 00 8e 00 5a 00 a1 01 | 25 00 28 00 9c 00 5a 17 |....Z...|%.(...Z.|
|00005740| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 4d 61 6e 61 |Translat|ion Mana|
|00005750| 67 65 72 20 31 2e 31 00 | 0d 00 0e 00 a1 00 64 00 |ger 1.1.|......d.|
|00005760| 10 4f 4e 4c 4e 00 64 00 | 18 00 a0 00 5a 00 af 00 |.ONLN.d.|....Z...|
|00005770| 91 00 2a 10 07 54 6f 6f | 6c 62 6f 78 00 00 04 00 |..*..Too|lbox....|
|00005780| 00 00 0d 00 0c 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005790| 64 00 21 00 bb 00 5a 00 | c7 00 8f 00 2a 18 0b 57 |d.!...Z.|....*..W|
|000057a0| 72 69 74 74 65 6e 20 62 | 79 3a 00 00 a1 00 64 00 |ritten b|y:....d.|
|000057b0| 10 4f 4e 4c 4e 00 64 00 | 2d 00 bb 00 a2 00 c7 00 |.ONLN.d.|-.......|
|000057c0| d9 00 29 48 0a 44 79 6c | 61 6e 20 41 73 68 65 00 |..)H.Dyl|an Ashe.|
|000057d0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 38 00 bb 01 |..d..ONL|N.d.8...|
|000057e0| eb 00 c7 02 1c 00 28 00 | c4 01 eb 09 4a 75 6e 65 |......(.|....June|
|000057f0| 20 31 39 39 34 00 06 00 | 02 00 00 00 a1 00 64 00 | 1994...|......d.|
|00005800| 10 4f 4e 4c 4e 00 64 00 | 42 00 d5 00 5a 00 e1 00 |.ONLN.d.|B...Z...|
|00005810| f4 00 28 00 de 00 5a 1e | 54 68 69 73 20 54 65 63 |..(...Z.|This Tec|
|00005820| 68 6e 69 63 61 6c 20 4e | 6f 74 65 20 64 69 73 63 |hnical N|ote disc|
|00005830| 75 73 73 65 73 20 00 00 | 06 00 03 00 00 00 a1 00 |usses ..|........|
|00005840| 64 00 10 4f 4e 4c 4e 00 | 64 00 60 00 d5 00 f4 00 |d..ONLN.|d.`.....|
|00005850| e1 02 1c 00 29 9a 39 63 | 68 61 6e 67 65 73 20 74 |....).9c|hanges t|
|00005860| 6f 20 74 68 65 20 54 72 | 61 6e 73 6c 61 74 69 6f |o the Tr|anslatio|
|00005870| 6e 20 4d 61 6e 61 67 65 | 72 20 77 68 69 63 68 20 |n Manage|r which |
|00005880| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 20 69 6e |are avai|lable in|
|00005890| 00 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000058a0| 4e 00 64 00 9a 00 e1 00 | 5a 00 ed 00 8e 00 28 00 |N.d.....|Z.....(.|
|000058b0| ea 00 5a 0a 4d 61 63 69 | 6e 74 6f 73 68 20 00 00 |..Z.Maci|ntosh ..|
|000058c0| 06 00 01 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000058d0| 64 00 a4 00 e1 00 8e 00 | ed 02 1c 00 29 34 52 45 |d.......|....)4RE|
|000058e0| 61 73 79 20 4f 70 65 6e | 20 76 65 72 73 69 6f 6e |asy Open| version|
|000058f0| 20 31 2e 31 20 61 6e 64 | 20 6c 61 74 65 72 2e 20 | 1.1 and| later. |
|00005900| 20 54 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | The inf|ormation|
|00005910| 20 63 6f 6e 74 61 69 6e | 65 64 20 68 65 72 65 20 | contain|ed here |
|00005920| 69 73 20 69 6e 20 61 64 | 64 69 74 69 6f 6e 20 74 |is in ad|dition t|
|00005930| 6f 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |o.......|..d..ONL|
|00005940| 4e 00 64 00 f7 00 ed 00 | 5a 00 f9 00 bc 00 28 00 |N.d.....|Z.....(.|
|00005950| f6 00 5a 15 77 68 61 74 | 20 69 73 20 64 69 73 63 |..Z.what| is disc|
|00005960| 75 73 73 65 64 20 69 6e | 20 00 04 02 00 00 a1 00 |ussed in| .......|
|00005970| 64 00 10 4f 4e 4c 4e 00 | 64 01 0c 00 ed 00 bc 00 |d..ONLN.|d.......|
|00005980| f9 01 10 00 29 62 11 49 | 6e 73 69 64 65 20 4d 61 |....)b.I|nside Ma|
|00005990| 63 69 6e 74 6f 73 68 3a | 00 00 04 00 00 00 a1 00 |cintosh:|........|
|000059a0| 64 00 10 4f 4e 4c 4e 00 | 64 01 1d 00 ed 01 10 00 |d..ONLN.|d.......|
|000059b0| f9 01 f6 00 29 54 2d 20 | 4d 6f 72 65 20 4d 61 63 |....)T- |More Mac|
|000059c0| 69 6e 74 6f 73 68 20 54 | 6f 6f 6c 62 6f 78 2c 20 |intosh T|oolbox, |
|000059d0| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 20 4d 61 6e 61 |Translat|ion Mana|
|000059e0| 67 65 72 20 00 00 06 00 | 01 00 00 00 a1 00 64 00 |ger ....|......d.|
|000059f0| 10 4f 4e 4c 4e 00 64 01 | 4a 00 ed 01 f6 00 f9 02 |.ONLN.d.|J.......|
|00005a00| 1c 00 29 e6 08 63 68 61 | 70 74 65 72 2c 00 06 00 |..)..cha|pter,...|
|00005a10| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00005a20| 53 00 f9 00 5a 01 05 00 | a8 00 28 01 02 00 5a 12 |S...Z...|..(...Z.|
|00005a30| 61 73 20 77 65 6c 6c 20 | 61 73 20 69 6e 20 74 68 |as well |as in th|
|00005a40| 65 20 00 00 04 02 00 00 | a1 00 64 00 10 4f 4e 4c |e ......|..d..ONL|
|00005a50| 4e 00 64 01 65 00 f9 00 | a8 01 05 00 c7 00 29 4e |N.d.e...|......)N|
|00005a60| 04 41 50 44 41 00 04 00 | 00 00 a1 00 64 00 10 4f |.APDA...|....d..O|
|00005a70| 4e 4c 4e 00 64 01 69 00 | f9 00 c7 01 05 01 7f 00 |NLN.d.i.|........|
|00005a80| 29 1f 24 20 4d 61 63 69 | 6e 74 6f 73 68 20 45 61 |).$ Maci|ntosh Ea|
|00005a90| 73 79 20 4f 70 65 6e 20 | 44 65 76 65 6c 6f 70 65 |sy Open |Develope|
|00005aa0| 72 73 20 4b 69 74 2e 00 | a1 00 64 00 10 4f 4e 4c |rs Kit..|..d..ONL|
|00005ab0| 4e 00 64 01 8e 01 11 00 | 5a 01 1d 02 03 00 28 01 |N.d.....|Z.....(.|
|00005ac0| 1a 00 5a 55 54 68 65 20 | 64 6f 63 75 6d 65 6e 74 |..ZUThe |document|
|00005ad0| 20 61 73 73 75 6d 65 73 | 20 74 68 61 74 20 79 6f | assumes| that yo|
|00005ae0| 75 20 61 72 65 20 73 6f | 6d 65 77 68 61 74 20 66 |u are so|mewhat f|
|00005af0| 61 6d 69 6c 69 61 72 20 | 77 69 74 68 20 74 68 65 |amiliar |with the|
|00005b00| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 4d 61 6e | Transla|tion Man|
|00005b10| 61 67 65 72 20 41 50 49 | 2e 00 04 01 00 00 a1 00 |ager API|........|
|00005b20| 64 00 10 4f 4e 4c 4e 00 | 64 01 e4 01 2b 00 5a 01 |d..ONLN.|d...+.Z.|
|00005b30| 37 00 80 00 2a 1a 06 54 | 6f 70 69 63 73 00 04 00 |7...*..T|opics...|
|00005b40| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 eb 01 |....d..O|NLN.d...|
|00005b50| 37 00 75 01 43 01 26 00 | 2b 1b 0c 25 a5 20 47 65 |7.u.C.&.|+..%. Ge|
|00005b60| 73 74 61 6c 74 20 61 6e | 64 20 74 68 65 20 54 72 |stalt an|d the Tr|
|00005b70| 61 6e 73 6c 61 74 69 6f | 6e 20 4d 61 6e 61 67 65 |anslatio|n Manage|
|00005b80| 72 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 11 01 |r...d..O|NLN.d...|
|00005b90| 43 00 75 01 4f 01 16 00 | 2a 0c 1f a5 20 4e 65 77 |C.u.O...|*... New|
|00005ba0| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 4d 61 6e | Transla|tion Man|
|00005bb0| 61 67 65 72 20 41 50 49 | 27 73 00 00 a1 00 64 00 |ager API|'s....d.|
|00005bc0| 10 4f 4e 4c 4e 00 64 02 | 31 01 4f 00 75 01 5b 01 |.ONLN.d.|1.O.u.[.|
|00005bd0| 37 00 2a 0c 28 a5 20 4e | 65 77 20 54 72 61 6e 73 |7.*.(. N|ew Trans|
|00005be0| 6c 61 74 69 6f 6e 20 45 | 78 74 65 6e 73 69 6f 6e |lation E|xtension|
|00005bf0| 20 43 61 70 61 62 69 6c | 69 74 69 65 73 00 a1 00 | Capabil|ities...|
|00005c00| 64 00 10 4f 4e 4c 4e 00 | 64 02 5a 01 5b 00 75 01 |d..ONLN.|d.Z.[.u.|
|00005c10| 67 01 19 00 2a 0c 20 a5 | 20 50 6f 77 65 72 50 43 |g...*. .| PowerPC|
|00005c20| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 45 78 74 | Transla|tion Ext|
|00005c30| 65 6e 73 69 6f 6e 73 00 | 07 00 01 00 01 00 20 01 |ensions.|...... .|
|00005c40| 73 00 58 01 73 02 1d 00 | 04 01 00 00 0d 00 0e 00 |s.X.s...|........|
|00005c50| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 7b 01 90 00 |..d..ONL|N.d.{...|
|00005c60| 5a 01 9f 01 4c 00 28 01 | 9c 00 5a 23 47 65 73 74 |Z...L.(.|..Z#Gest|
|00005c70| 61 6c 74 20 61 6e 64 20 | 74 68 65 20 54 72 61 6e |alt and |the Tran|
|00005c80| 73 6c 61 74 69 6f 6e 20 | 4d 61 6e 61 67 65 72 00 |slation |Manager.|
|00005c90| 04 00 00 00 0d 00 0c 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00005ca0| 4e 00 64 02 9f 01 ab 00 | 5a 01 b7 00 78 00 2a 18 |N.d.....|Z...x.*.|
|00005cb0| 05 53 6f 6d 65 20 00 00 | 06 00 01 00 00 00 a1 00 |.Some ..|........|
|00005cc0| 64 00 10 4f 4e 4c 4e 00 | 64 02 a4 01 ab 00 78 01 |d..ONLN.|d.....x.|
|00005cd0| b7 02 1c 00 29 1e 53 6f | 66 20 74 68 65 20 6e 65 |....).So|f the ne|
|00005ce0| 77 20 41 50 49 27 73 20 | 61 72 65 20 61 76 61 69 |w API's |are avai|
|00005cf0| 6c 61 62 6c 65 20 6f 6e | 6c 79 20 69 6e 20 54 72 |lable on|ly in Tr|
|00005d00| 61 6e 73 6c 61 74 69 6f | 6e 20 4d 61 6e 61 67 65 |anslatio|n Manage|
|00005d10| 72 20 31 2e 31 20 61 6e | 64 20 73 6f 6d 65 20 68 |r 1.1 an|d some h|
|00005d20| 61 76 65 20 61 6c 77 61 | 79 73 00 00 06 00 00 00 |ave alwa|ys......|
|00005d30| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 f8 01 |....d..O|NLN.d...|
|00005d40| b8 00 5a 01 c4 00 bc 00 | 28 01 c1 00 5a 15 62 65 |..Z.....|(...Z.be|
|00005d50| 65 6e 20 61 76 61 69 6c | 61 62 6c 65 2e 20 20 55 |en avail|able. U|
|00005d60| 73 65 20 00 2c 00 0a 00 | 16 07 43 6f 75 72 69 65 |se .,...|..Courie|
|00005d70| 72 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |r.......|d..ONLN.|
|00005d80| 64 03 0d 01 b7 00 bc 01 | c3 00 fb 00 29 62 09 47 |d.......|....)b.G|
|00005d90| 65 73 74 61 6c 74 28 29 | 00 00 03 00 14 00 a1 00 |estalt()|........|
|00005da0| 64 00 10 4f 4e 4c 4e 00 | 64 03 16 01 b8 00 fb 01 |d..ONLN.|d.......|
|00005db0| c4 01 bd 00 29 3f 2b 20 | 61 73 20 61 70 70 72 6f |....)?+ |as appro|
|00005dc0| 70 72 69 61 74 65 20 74 | 6f 20 63 68 65 63 6b 20 |priate t|o check |
|00005dd0| 66 6f 72 20 74 68 65 20 | 65 78 69 73 74 65 6e 63 |for the |existenc|
|00005de0| 65 20 00 00 06 00 01 00 | 00 00 a1 00 64 00 10 4f |e ......|....d..O|
|00005df0| 4e 4c 4e 00 64 03 41 01 | b8 01 bd 01 c4 02 1c 00 |NLN.d.A.|........|
|00005e00| 29 c2 12 6f 66 20 73 6f | 6d 65 20 6f 66 20 74 68 |)..of so|me of th|
|00005e10| 65 20 6e 65 77 00 06 00 | 00 00 00 00 a1 00 64 00 |e new...|......d.|
|00005e20| 10 4f 4e 4c 4e 00 64 03 | 54 01 c4 00 5a 01 d0 01 |.ONLN.d.|T...Z...|
|00005e30| 1b 00 28 01 cd 00 5a 29 | 41 50 49 27 73 20 28 64 |..(...Z)|API's (d|
|00005e40| 69 73 63 75 73 73 65 64 | 20 6c 61 74 65 72 20 69 |iscussed| later i|
|00005e50| 6e 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 29 |n this d|ocument)|
|00005e60| 2e 00 03 00 16 00 0d 00 | 09 00 a1 00 64 00 10 4f |........|....d..O|
|00005e70| 4e 4c 4e 00 64 03 7e 01 | de 00 5a 01 e9 01 1d 00 |NLN.d.~.|..Z.....|
|00005e80| 2a 19 27 20 20 20 20 20 | 67 65 73 74 61 6c 74 54 |*.' |gestaltT|
|00005e90| 72 61 6e 73 6c 61 74 69 | 6f 6e 4d 67 72 48 69 6e |ranslati|onMgrHin|
|00005ea0| 74 4f 72 64 65 72 20 3d | 20 31 00 00 03 00 14 00 |tOrder =| 1......|
|00005eb0| 0d 00 0c 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00005ec0| a6 01 f2 00 5a 01 fe 01 | d5 00 2a 15 55 54 68 65 |....Z...|..*.UThe|
|00005ed0| 20 70 72 65 76 69 6f 75 | 73 20 62 69 74 20 77 69 | previou|s bit wi|
|00005ee0| 6c 6c 20 62 65 20 73 65 | 74 20 69 66 20 74 68 65 |ll be se|t if the|
|00005ef0| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 4d 61 6e | Transla|tion Man|
|00005f00| 61 67 65 72 20 68 69 6e | 74 20 6f 72 64 65 72 20 |ager hin|t order |
|00005f10| 66 69 78 20 69 73 20 69 | 6e 20 65 66 66 65 63 74 |fix is i|n effect|
|00005f20| 2e 20 00 00 06 00 01 00 | 00 00 a1 00 64 00 10 4f |. ......|....d..O|
|00005f30| 4e 4c 4e 00 64 03 fb 01 | f2 01 d5 01 fe 02 1c 00 |NLN.d...|........|
|00005f40| 28 01 fb 01 d5 0f 20 49 | 6e 20 54 72 61 6e 73 6c |(..... I|n Transl|
|00005f50| 61 74 69 6f 6e 00 06 00 | 02 00 00 00 a1 00 64 00 |ation...|......d.|
|00005f60| 10 4f 4e 4c 4e 00 64 04 | 0b 01 fe 00 5a 02 0a 02 |.ONLN.d.|....Z...|
|00005f70| 13 00 28 02 07 00 5a 58 | 4d 61 6e 61 67 65 72 20 |..(...ZX|Manager |
|00005f80| 76 65 72 73 69 6f 6e 20 | 31 2e 30 2e 31 20 28 66 |version |1.0.1 (f|
|00005f90| 69 78 65 64 20 69 6e 20 | 76 65 72 73 69 6f 6e 20 |ixed in |version |
|00005fa0| 31 2e 30 2e 32 20 61 6e | 64 20 6c 61 74 65 72 29 |1.0.2 an|d later)|
|00005fb0| 20 74 68 65 72 65 20 69 | 73 20 61 20 62 75 67 20 | there i|s a bug |
|00005fc0| 77 68 65 72 65 20 74 68 | 65 20 68 69 6e 74 73 20 |where th|e hints |
|00005fd0| 00 00 06 00 03 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00005fe0| 4e 00 64 04 63 01 fe 02 | 13 02 0a 02 1c 00 28 02 |N.d.c...|......(.|
|00005ff0| 07 02 13 02 69 6e 00 00 | 03 00 16 00 06 00 01 00 |....in..|........|
|00006000| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 66 02 |....d..O|NLN.d.f.|
|00006010| 0a 00 5a 02 16 00 d8 00 | 28 02 14 00 5a 12 44 6f |..Z.....|(...Z.Do|
|00006020| 54 72 61 6e 73 6c 61 74 | 65 53 63 72 61 70 28 29 |Translat|eScrap()|
|00006030| 00 00 03 00 14 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00006040| 64 04 78 02 0b 00 d8 02 | 17 01 34 00 29 7e 14 20 |d.x.....|..4.)~. |
|00006050| 61 72 65 20 72 65 76 65 | 72 73 65 64 20 2d 20 74 |are reve|rsed - t|
|00006060| 68 65 20 00 03 00 16 00 | 06 00 02 00 00 00 a1 00 |he .....|........|
|00006070| 64 00 10 4f 4e 4c 4e 00 | 64 04 8c 02 0a 01 34 02 |d..ONLN.|d.....4.|
|00006080| 16 01 81 00 29 5c 0b 64 | 73 74 54 79 70 65 48 69 |....)\.d|stTypeHi|
|00006090| 6e 74 00 00 03 00 14 00 | a1 00 64 00 10 4f 4e 4c |nt......|..d..ONL|
|000060a0| 4e 00 64 04 97 02 0b 01 | 81 02 17 01 cf 00 29 4d |N.d.....|......)M|
|000060b0| 11 20 69 73 20 61 63 74 | 75 61 6c 6c 79 20 74 68 |. is act|ually th|
|000060c0| 65 20 00 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c |e ......|..d..ONL|
|000060d0| 4e 00 64 04 a8 02 0a 01 | cf 02 16 02 1c 00 29 4e |N.d.....|......)N|
|000060e0| 0b 73 72 63 54 79 70 65 | 48 69 6e 74 00 00 03 00 |.srcType|Hint....|
|000060f0| 14 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00006100| 4e 00 64 04 b4 02 17 00 | 5a 02 23 01 71 00 28 02 |N.d.....|Z.#.q.(.|
|00006110| 20 00 5a 3b 61 6e 64 20 | 76 69 63 65 2d 76 65 72 | .Z;and |vice-ver|
|00006120| 73 61 2e 20 20 49 66 20 | 79 6f 75 20 77 61 6e 74 |sa. If |you want|
|00006130| 20 79 6f 75 72 20 54 72 | 61 6e 73 6c 61 74 69 6f | your Tr|anslatio|
|00006140| 6e 20 45 78 74 65 6e 73 | 69 6f 6e 20 74 6f 20 00 |n Extens|ion to .|
|00006150| 06 00 01 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00006160| 64 04 ef 02 17 01 71 02 | 23 02 1c 00 28 02 20 01 |d.....q.|#...(. .|
|00006170| 71 23 77 6f 72 6b 20 77 | 69 74 68 20 74 68 65 20 |q#work w|ith the |
|00006180| 65 61 72 6c 79 20 76 65 | 72 73 69 6f 6e 73 20 6f |early ve|rsions o|
|00006190| 66 20 74 68 65 00 06 00 | 00 00 00 00 a1 00 64 00 |f the...|......d.|
|000061a0| 10 4f 4e 4c 4e 00 64 05 | 13 02 23 00 5a 02 2f 01 |.ONLN.d.|..#.Z./.|
|000061b0| 4b 00 28 02 2c 00 5a 32 | 54 72 61 6e 73 6c 61 74 |K.(.,.Z2|Translat|
|000061c0| 69 6f 6e 20 4d 61 6e 61 | 67 65 72 2c 20 61 6e 64 |ion Mana|ger, and|
|000061d0| 20 79 6f 75 d5 72 65 20 | 74 68 65 73 65 20 75 73 | you.re |these us|
|000061e0| 69 6e 67 20 74 68 65 73 | 65 20 00 00 06 00 01 00 |ing thes|e ......|
|000061f0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 45 02 |....d..O|NLN.d.E.|
|00006200| 23 01 4b 02 2f 02 1c 00 | 29 f1 2c 73 63 72 61 70 |#.K./...|).,scrap|
|00006210| 20 68 69 6e 74 73 2c 20 | 74 68 65 6e 20 79 6f 75 | hints, |then you|
|00006220| 20 6e 65 65 64 20 74 6f | 20 63 68 65 63 6b 20 74 | need to| check t|
|00006230| 68 69 73 20 62 69 74 00 | 06 00 00 00 00 00 a1 00 |his bit.|........|
|00006240| 64 00 10 4f 4e 4c 4e 00 | 64 05 72 02 2f 00 5a 02 |d..ONLN.|d.r./.Z.|
|00006250| 3b 01 49 00 28 02 38 00 | 5a 33 74 6f 20 73 65 65 |;.I.(.8.|Z3to see|
|00006260| 20 77 68 65 72 65 20 79 | 6f 75 72 20 64 65 73 74 | where y|our dest|
|00006270| 69 6e 61 74 69 6f 6e 20 | 61 6e 64 20 73 6f 75 72 |ination |and sour|
|00006280| 63 65 20 68 69 6e 74 73 | 20 61 72 65 2e 00 03 00 |ce hints| are....|
|00006290| 16 00 0d 00 09 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000062a0| 64 05 a6 02 49 00 5a 02 | 54 01 09 00 2a 19 23 20 |d...I.Z.|T...*.# |
|000062b0| 20 20 20 20 67 65 73 74 | 61 6c 74 54 72 61 6e 73 | gest|altTrans|
|000062c0| 6c 61 74 69 6f 6e 50 50 | 43 41 76 61 69 6c 20 3d |lationPP|CAvail =|
|000062d0| 20 32 00 00 03 00 14 00 | 0d 00 0c 00 06 00 02 00 | 2......|........|
|000062e0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 ca 02 |....d..O|NLN.d...|
|000062f0| 60 00 5a 02 6c 00 67 00 | 2a 18 03 49 66 20 00 00 |`.Z.l.g.|*..If ..|
|00006300| 03 00 16 00 06 00 03 00 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|00006310| 4e 4c 4e 00 64 05 cd 02 | 5f 00 67 02 6b 01 1d 00 |NLN.d...|_.g.k...|
|00006320| 29 0d 1a 67 65 73 74 61 | 6c 74 54 72 61 6e 73 6c |)..gesta|ltTransl|
|00006330| 61 74 69 6f 6e 50 50 43 | 41 76 61 69 6c 00 03 00 |ationPPC|Avail...|
|00006340| 14 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 e7 02 |....d..O|NLN.d...|
|00006350| 60 01 1d 02 6c 02 1c 00 | 29 b6 35 20 62 69 74 20 |`...l...|).5 bit |
|00006360| 69 73 20 73 65 74 20 74 | 68 65 6e 20 74 68 61 74 |is set t|hen that|
|00006370| 20 69 73 20 61 6e 20 69 | 6e 64 69 63 61 74 6f 72 | is an i|ndicator|
|00006380| 20 74 68 61 74 20 74 68 | 65 20 6e 61 74 69 76 65 | that th|e native|
|00006390| 00 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000063a0| 4e 00 64 06 1d 02 6c 00 | 5a 02 78 01 11 00 28 02 |N.d...l.|Z.x...(.|
|000063b0| 75 00 5a 24 50 6f 77 65 | 72 50 43 20 54 72 61 6e |u.Z$Powe|rPC Tran|
|000063c0| 73 6c 61 74 69 6f 6e 20 | 4d 61 6e 61 67 65 72 20 |slation |Manager |
|000063d0| 6c 69 62 72 61 72 79 20 | 00 00 06 00 01 00 00 00 |library |........|
|000063e0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 06 41 02 6c 01 |..d..ONL|N.d.A.l.|
|000063f0| 11 02 78 02 1c 00 29 b7 | 3a 69 73 20 61 76 61 69 |..x...).|:is avai|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.